Question: in c++ Question 3 Write a program that reads the following sentences from a file: I am Sam Sam I am That Sam I am

in c++

Question 3

Write a program that reads the following sentences from a file:

I am Sam Sam I am That Sam I am That Sam I am I do not like that Sam I am Do you like green eggs and ham ?

I do not like them

I do like spam

Your program should produce two output files: (i) one with the whole text in uppercase and (ii) another one with statistics about the text. The latter should present the number of characters in the whole text, the longest verse, and the number of lines in the original file.

The content of both files should also be presented on screen.

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 Databases Questions!