Modify the example 1 in Chapter 14 (slide 28) to also convert each capital character to...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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 != '\n') { 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' <= inchar && inchar <= '2¹) outchar Ħ inchar ('a' "A"); outchar = inchar; return outchar; UNIVERSITY AWTHOMAS 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 != '\n') { 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' <= inchar && inchar <= '2¹) outchar Ħ inchar ('a' "A"); outchar = inchar; return outchar; UNIVERSITY AWTHOMAS
Expert Answer:
Answer rating: 100% (QA)
Modified C program that takes user input converts lowerc... View the full answer
Related Book For
Systems analysis and design
ISBN: 978-0136089162
8th Edition
Authors: kenneth e. kendall, julie e. kendall
Posted Date:
Students also viewed these programming questions
-
1. The Columbia Arena Company, formed in 2021, and uses the accrual basis of accounting and incremental budgeting. They are the primary facility used by the Missouri Redhawks football team of the...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
This assignment reviews object-oriented programming concepts such as classes, methods, constructors, accessor methods, and access modifiers. It makes use of an array of objects as a class data...
-
Find the values of the parameter p > 0 for which the following series converge. 00 1 k=2 (Ink)P
-
Suppose x has a mound-shaped symmetric distribution. A random sample of size 16 has sample mean 10 and sample standard deviation 2. (a) Check Requirements Is it appropriate to use a Student's t...
-
A study of 13 main arterial roads in Delhi, India, in June 2017 by the Centre for Science and Environment found that "rush hour" is every day from 8 A.M. to 8 P.M., with average speeds not exceeding...
-
In consolidation of Perpetual Industries and Sand Hill Company at December 31, 2017, you assemble the following data related to unconfirmed intercompany profits: The equipment is carried on the...
-
Mary Losch operates a travel agency called Mary's Luxury Travel. She has five employees, all of whom are paid on a weekly basis. The travel agency uses a payroll register, individual employee...
-
A coupon bond that pays interest semi-annually is selling at a par value of $1,000. matures in 12 years, and has a coupon rate of 5.7%. The yield to maturity on this bond is %. 9.0 O 5.7 8.6 8.0 Next
-
(Liberatore and Miller, 1985) A manufacturing facility uses two production lines to produce three products over the next 6 months. Backlogged demand is not allowed. However, a product may be...
-
Question 1 (15 points): Draw the structure of ethyl cyclohexanecarboxylate in the box below and provide the major products of each of the following four reactions (3 points each). ethyl...
-
For the Asante teaching hospital case. Why are none of the overhead costs fixed? All of the overhead costs are tied to a cost driver including number of patients. I would think some of the utilities,...
-
Jason Company provides weather and climate forecasts to almost 100 firms in the northwestern states of Washington, Oregon, and Idaho. New technology is available that should improve forecast accuracy...
-
Managers of multi-unit properties within the same chain can compare operating results across the units they manage. What do you think are some reasons financial performance and profitability could...
-
Why did you not include the benefits in the cost per hour calculation, why is that separated out? Also, were any of the overhead costs fixed in nature? For example the utilities, were they 100% tied...
-
A business paid a $ 7 2 0 subscription to a trade magazine on 3 0 June 2 0 0 0 , for the two years to 1 July 2 0 0 2 . The business's financial year ends on 3 0 November 2 0 0 0 . What relevant...
-
Martinez Co. decides at the beginning of 2025 to adopt the FIFO method of inventory valuation. Martinez had used the LIFO method for financial reporting since its inception on January 1, 2023, and...
-
Assume a simple Keynesian depression economy with a multiplier of 4 and an initial equilibrium income of $3,000. Saving and investment equal $400, and assume full employment income is $4,000. a. What...
-
When are closed questions appropriate for use in interviewing?
-
Recently, two analysts just out of college have joined your systems analyst group at the newly formed company, Mega Phone. When talking to you about the group, they mention that some things strike...
-
Raul Esparza, the ecommerce manager for Moonlight Mugs, a company that sells customized coffee mugs, would like to send information to another company that maintains the warehouse and provides...
-
You are required to prepare a purchases ledger control account from the following for the month of June. The balance of the account is to be taken as the amount of creditors as on 30 June. 19X6 June...
-
Prepare a sales ledger control account from the following: 19X5 May 1 Debit balances Totals for May: Sales journal Cash and cheques received from debtors Discounts allowed Debit balances in the sales...
-
Prepare a sales ledger control account from the following information for July 19X9, carrying down the balance at 31 July: 19X9 July 1 July 31 Sales ledger balances Sales journal 9,700 99,280 Bad...
Study smarter with the SolutionInn App