Question: Write a C++ function named repeatUpperCase that accepts a string parameter and returns another string by including all upper case letters in the parameter

Write a C++ function named repeatUpperCase that accepts a string parameter and

 

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.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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!