Question: write a c + + program that reads and echos the first line of an input file named essay.txt to an output file named
write a c program that reads and echos the first line of an input file named "essay.txt to an output file named "corrected.txt The program must replace each exclamation point with a period and replace each comma with a space. Additionally, print the total number of replacements to the monitor screen For example, if the first line of the essay.txt is "Hello, World!" Then the first line of corrected.txt should be "Hello World."
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
