Question: 2. 20 points Write your own C++ program that will calculate the percentage of characters in a file that belong to five categories: uppercase characters,

2. 20 points Write your own C++ program that will calculate the percentage of characters in a file that belong to five categories: uppercase characters, lowercase characters, decimal digits, blanks, and end-of-sentence punctuation marks. A sample run of the program may look like this: Enter the name of the file to be processed text.in Analysis of characters on input file text.in Percentage of uppercase characters: 3.078 Percentage of lowercase characters: 78.139 Percentage of blanks: 17.367 Percentage of digits: 0.342 Percentage of end-of-sentence punctuation 1.075 2. 20 points Write your own C++ program that will calculate the percentage of characters in a file that belong to five categories: uppercase characters, lowercase characters, decimal digits, blanks, and end-of-sentence punctuation marks. A sample run of the program may look like this: Enter the name of the file to be processed text.in Analysis of characters on input file text.in Percentage of uppercase characters: 3.078 Percentage of lowercase characters: 78.139 Percentage of blanks: 17.367 Percentage of digits: 0.342 Percentage of end-of-sentence punctuation 1.075
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
