Write a C++ function named repeatUpperCase that accepts a string parameter and returns another string by...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a C++ function named repeatUpperCase that accepts a string parameter and returns another string by including all upper case letters in the parameter twice. For instance, if the parameter is "The Young Girl Gave No Clear Response.", the function should return "TThe YYoung GGirl GGave NNO CClear RResponse.". In your main function, read a file named "input.txt" and apply the function to each line and print them into "output.txt". An example "input.txt" and "output.txt" is given below: input.txt University of Houston-Downtown The Birch Canoe slid on the smooth planks. Glue the sheet to the dark Blue Background. It's Easy To Tell The Depth Of A Well. These days a chicken leg is a rare dish. RICE IS OFTEN SERVED IN ROUND BOWLS. output.txt UUniversity of HHouston-DDowntown TThe BBirch CCanoe slid on the smooth planks. GGlue the sheet to the dark IIt's EEasy TTO BBlue BBackground. TTell TThe DDepth Oof AA WWell. TThese days a chicken leg is a rare dish. RRIICCEE IISS 00FFTTEENN SSEERRVVEEDD IINN RROOUUNNDD BBOOWWLLSS. Write a C++ function named repeatUpperCase that accepts a string parameter and returns another string by including all upper case letters in the parameter twice. For instance, if the parameter is "The Young Girl Gave No Clear Response.", the function should return "TThe YYoung GGirl GGave NNO CClear RResponse.". In your main function, read a file named "input.txt" and apply the function to each line and print them into "output.txt". An example "input.txt" and "output.txt" is given below: input.txt University of Houston-Downtown The Birch Canoe slid on the smooth planks. Glue the sheet to the dark Blue Background. It's Easy To Tell The Depth Of A Well. These days a chicken leg is a rare dish. RICE IS OFTEN SERVED IN ROUND BOWLS. output.txt UUniversity of HHouston-DDowntown TThe BBirch CCanoe slid on the smooth planks. GGlue the sheet to the dark IIt's EEasy TTO BBlue BBackground. TTell TThe DDepth Oof AA WWell. TThese days a chicken leg is a rare dish. RRIICCEE IISS 00FFTTEENN SSEERRVVEEDD IINN RROOUUNNDD BBOOWWLLSS.
Expert Answer:
Related Book For
Posted Date:
Students also viewed these programming questions
-
"internet radios" for streaming audio, and personal video recorders and players. Describe design and evaluation processes that could be used by a start-up company to improve the usability of such...
-
The trial balance for Hanna Resort Limited on August 31 is as follows: Additional information: 1. The balance in Prepaid Insurance includes the cost of four months premiums for an insurance policy...
-
On June 30, 2014, Perfect Party Planners (PPP) had a $40,000 balance in Accounts Receivable and a $3,000 credit balance in Allowance for Uncollectible Accounts. During July, PPP made credit sales of...
-
The Simcoe County Food Emporium claims that ?the typical customer spends $60 per visit.? A sample of 12 customers revealed the following purchases, in dollars, spent last visit: a.?What is the point...
-
Assuming the same data as given in problem 9, was the well in each case profitable? Discuss your answer. Problem 9:- Property cost (acquisition cost). Drilling cost (one well). Estimated completion...
-
The number of heart surgeries performed at Hartville General Hospital has increased steadily over the past several years. The hospitals administration is seeking the best method to forecast the...
-
Give the steps required to use the Oracle Enterprise Manager to monitor the performance of the Oracle Database and identify any potential performance bottlenecks.
-
Visit the website for the Congressional Budget Office (www.cbo.gov), follow the link to Budget and Economic Information, and look up the most current Monthly Budget Review. What is the CBOs estimate...
-
Assume adjusting entries are made annually. On January 1, 2018, Leons Inc. delivers a set of kitchen appliances to a customer. The customer will pay $1000 a year for 5 years on December 31 of each...
-
Fiona is a calendar year taxpayer. Her bank credited, and made available, interest to her bank account in December 2022. She did not withdraw it or enter it into her books until 2023. Fiona must...
-
8. Let f(x)= x if x 2 2x if x>2 What is the average value of f (x) on the interval [1,4]?
-
What is the purpose of including goals in a comprehensive budget?
-
Consider you work in the energy sector. Describe two adjusting entries that you believe they might need to make at the end of a given accounting period.
-
Describe the components Discuss trends of ESG corporate reporting on AI. Connect AI trust, ethics, and transparency financial industry governance and best practices.f sound governance of AI. Discuss...
-
Write a paper on How to Establish an Ideal Learning Environment and also create your own customized theory of human learning and development. Everyone operates with a theory of what makes the best...
-
Explain why it is not wise to accept a null hypothesis.
-
Give examples of the two types of Java comments and explain the differences between them.
-
Draw a UML class diagram showing an inheritance hierarchy containing classes that represent different types of cars, organized first by manufacturer. Show some appropriate variables and method names...
-
Write a do loop that verifies that the user enters an even integer value.
-
Discuss how a new brand manufacturer would go about defining their market segments and then begin to target them.
-
Go to www.kellogs.com, and examine the brands offered by Kelloggs. Using the BCG growth-share matrix, classify 10 brands as stars, question marks, cash cows, or dogs. Find at least one product you...
-
Diff Eyewear is a successful business built around a socially conscious mission. The company makes and sells stylish eyewear with comparable quality but a significantly lower price than luxury...
Study smarter with the SolutionInn App