[SOLVED] COM1002 Lab 4

30.00 $

Category:

Description

Rate this product

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:

  • If the character is a vowel, it needs to be printed in capitalized
  • If the character is consonant, it needs to be printed in small form
  • All white space characters need to be eliminated, except for the newlines.
  • All the characters corresponding to a decimal digit, i.e. [0-9] should be eliminated.
  • 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:

Prepare sample input files yourselves to test your program. Please test your program thoroughly before submission. Good luck ☺