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 newchar ToUpper (char input); // function declaration int main(void) [ // main function calls toupper char echo;

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

1 Expert Approved Answer
Step: 1 Unlock

Modified C program that takes user input converts lowerc... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!