Starting from:

$30

COM1002 Lab 4 -Solved

Write a C program which reads a sequence of characters from the C character set, unQl the EOF, from stdin and echoes (prints) the characters in the given order considering the specifica;ons below:

1-  If the character is a vowel, it needs to be printed in capitalized form.

2-  If the character is consonant, it needs to be printed in small form

3-  All white space characters need to be eliminated, except for the newlines.

4-  All the characters corresponding to a decimal digit, i.e. [0-9] should be eliminated.

5-  For the remaining characters, nothing needs to be done, i.e. print as it is.

For example:

for the following input:  

Sample Input:  

                                                >a B? d 640        uTG% rPWw 4Y5e

Sample Output:                

                                               >Ab?dUtg%rpwwyE

SuggesQon: 

More products