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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started