Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribedimage text in transcribedimage text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Rules In Database Systems Third International Workshop Rids 97 Sk Vde Sweden June 26 28 1997 Proceedings Lncs 1312

Authors: Andreas Geppert ,Mikael Berndtsson

1997th Edition

3540635165, 978-3540635161

More Books

Students also viewed these Databases questions

Question

Perform an Internet search. Discuss a company that uses EPLI.

Answered: 1 week ago

Question

How do you feel about employment-at-will policies? Are they fair?

Answered: 1 week ago