Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I need this in C++ please Programming Exercise #1 - File I/O (5 pts) Write a program that reads in an unknown number of characters
I need this in C++ please
Programming Exercise #1 - File I/O (5 pts) Write a program that reads in an unknown number of characters from a file (A3Q1.dat) and then outputs to the screen. the characters read displayed 10 per line with 2 spaces in between them. the total number of characters read from file the number of digits read and the % of the total characters read this represents the number of uppercase letters read and the % of the total characters read this represents the number of lower case letters read and the % of the total characters read this represents the number of spaces read and the % of the total characters read this represents the number of the remaining characters and the % of the total characters read this represents You need to account for the possibility that the file does not exist (Figure 1) and the file is empty (Figure 2) Figures 1 to 4 show you a sample outputs. Your output does not have to be identical to these but must contain the same information. C:\. C:\Windows\system32\cmd.exe Fa-b-c-d-e-f-g-1-2-3-2-1-G-F-E-D-C-B-A- Nancy's Character Counter F-*-&-^-%-$-#-e-!-?-/->-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