Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Modified C program that takes user input converts lowerc...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started