[SOLVED] COM1002 Lab 4

30.00 $

Programming resource
Digital learning resource
Category:
✓ Practical programming resource
✓ Suitable for guided study and reference
✓ Tutor guidance available when needed

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 ☺

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.