Submission: Submit your solutions as a single .zip file through Blackboard. .zip file will contain -Q1.cpp...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Submission: Submit your solutions as a single .zip file through Blackboard. .zip file will contain -Q1.cpp file (for Question 1) including the repeatUpperCase function and the main function. - MyList.h file and MyListDriver.cpp file (for Question 2). An example MyListDriver.cpp is given in the question. Q1 (30 pts). 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: Submission: Submit your solutions as a single .zip file through Blackboard. .zip file will contain -Q1.cpp file (for Question 1) including the repeatUpperCase function and the main function. - MyList.h file and MyListDriver.cpp file (for Question 2). An example MyListDriver.cpp is given in the question. Q1 (30 pts). 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:
Expert Answer:
Answer rating: 100% (QA)
Certainly Heres an example implementation for Q1 in C cpp include include include stdstring repeatUp... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
A new project is expected to generate $1,500,000 in revenues, $550,000 in cash operating expenses, and depreciation expense of $300,000 in each year of its 10-year life. The corporation's tax rate is...
-
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...
-
Create a Mircrosoft Word document named A05.docx. Include all diagrams, screen shots, code, and answers to questions within the following sections: Understand Data Structure and Data Customer Name...
-
In an organization, managers communicate information downward to their departments and teams, and employees communicate information upward to their managers. If all members of an organization are not...
-
Why are ultraviolet photons more effective at inducing the photoelectric effect than photons of visible light?
-
Analyze the link between the monetary base and the money supply.
-
Round 45.11475 to four decimal digits.
-
(Computation of Actual Return) Gingrich Importers provides the following pension plan information. Fair value of pension plan assets, January 1, 2010 $2,400,000 Fair value of pension plan assets,...
-
number5 required a &b Vail Book Mart sells books and other supplies to students in a state where the sales tax rate is 8 percent Vail Book Mart engaged in the following transactions for Year 1 ....
-
The Car Maintenance team wants to learn how many times each car is used in every month and day to organize their maintenance schedules. The team wants a table with the following column names and...
-
Proforma balance sheet for the upcoming year is given. The estimated net income is $2,621.60. If the company is planning to pay $500 dividends, what should be the external financing needs (EFN)?...
-
Mr. Burk wrote an article in his local small town community newspaper in which he stated, "The only thing reliable about Mr. Smith, owner of Smith's Grocery Store, is that he is a liar." Mr. Smith...
-
List 3 typical components of a personal financial plan, and briefly explain one of them. Briefly define/explain: liquidity, risk tolerance and annuity List 4 "common" compoundings per year , and also...
-
what would be the formula for the following? 1. present value and multiple cash flows 2. future value and multiple cash flows 3. calculating EAR: 4. Calculating the number of periods : 5. Calculating...
-
Separate variables in the following partial differential equation for u(x, t): DE for X(x): DE for T(t): = 0 = 0 (Simplify your answers so that the highest derivative in each equation is positive.) t...
-
What is the purpose of tests of controls? With reference to the three (3) main risk components of the Audit Risk Model , explain the circumstances where it is NOT appropriate for the Auditor to test...
-
Analyze how the IMS helps coordinate between supply chain partners and provide an example of how the coordination leads to exceptional service from Apple.
-
Which of the followingcarbocations is the least stable? CH3CH2 . CH3CHCH3 CH3 I . CH3C0 T CH3 IV. V. CH3 CH3CCH2 CH3
-
Dr. George E. Beeper is a single taxpayer. He lives at 45 Mountain View Dr., Apt. 321, Spokane, WA 99210. Dr. Beeper's Social Security number is 775-88-9531. Dr. Beeper works for the Pine Medical...
-
Olive Corporation was formed and began operations on January 1, 2012. The corporation's income statement for the year and the balance sheet at year-end are presented below. The corporation made...
-
Mike purchases a heavy-duty truck (5-year class recovery property) for his delivery service on April 30, 2012. The truck is not considered a passenger automobile for purposes of the listed property...
-
A company maintains its fixed assets at cost. Depreciation provision accounts for each asset are kept. The following additions were made during the financial year ended 31 December 19X9: Machinery...
-
A Mavron ple owned the following motor vehicles as at 1 April 19X6: Mavyron ples policy is to provide at the end of each financial year depreciation using the straight line method applied on a...
-
(a) Identify the four factors which cause fixed assets to depreciate. (6) Which one of these factors is the most important for each of the following assets? (i) a gold mine, (ii) a motor lorry, (ii1)...
Study smarter with the SolutionInn App