Question: Design a C++ program that reads characters from a file and counts and tracks the number of: Total Characters Read Letters Vowels Consonants Numbers Punctuation

 Design a C++ program that reads characters from a file and

Design a C++ program that reads characters from a file and "counts" and "tracks" the number of: Total Characters Read Letters Vowels Consonants Numbers Punctuation White Space (Space, Tab, etc) The program should prompt the user for the name of the file to open. You should display an error message if you cannot open the file If the input file opens successfully, make sure to close the input file before displaying the count information to the user on the screen If the input file opens successfully, open an output file named charsCounts.txtand write the count information to the file. If the output file opens successfully, remember to close it. Otherwise, display an error message that the output file could not be opened. The program should include a loop that allows the user to run the program until they want to exit

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!