Question: Modify the example 1 in Chapter 14 (slide 28) to also convert each capital character to lowercase. The new program should print out the

Modify the example 1 in Chapter 14 (slide 28) to also convert each capital character to lowercase. The new program should print out the opposite version of user's input. E.g., if user inputs "Hello World,", the program should print out "hELLO WORLD". Submit the program code in PDF or in .e file. char ToUpper (char input); // function declaration int main (void) [ char echo; char upcase; printf ("Type input: "); while (echo != ' ') { scanf ("%c", &echo); upcase printf("%c", upcase); } // main function calls toupper // character typed by user // converted to upper-case ToUpper (echo); // function call } // function implementation char ToUpper (char inchar) { else char outchar; // will convert and return output character if ('a'
Step by Step Solution
3.33 Rating (150 Votes )
There are 3 Steps involved in it
Modified C program that takes user input converts lowerc... View full answer
Get step-by-step solutions from verified subject matter experts
