Question: Design an pseudocode algorithm that reads characters from a file and counts and tracks the number of: Total Characters Read Letters Vowels Consonants Numbers Punctuation
Design an pseudocode algorithm 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, or Newline Characters)
*Hint: You can determine some counts using some of the other counts listed above.
The program should prompt the user for the name of the file which is a text file name testoutput (i.e. inputFile.open(testoutput.txt). 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.txt and 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
