Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Java Software Solutions

Authors: John Lewis, William Loftus

9th Edition

9353063612, 978-9353063610

More Books

Students also viewed these Programming questions