COM1002-COMPUTER PROGRAMMING 2 (Solution)

$ 29.99
Category:

Description

LAB4 Quiz
Assoc. Prof. Dr. Hacer Yalım Keleş

DuraQon: 90 minutes

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:
Prepare sample input files yourselves to test your program. Please test your program thoroughly before submission. Good luck ☺

Reviews

There are no reviews yet.

Be the first to review “COM1002-COMPUTER PROGRAMMING 2 (Solution)”

Your email address will not be published. Required fields are marked *