Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Complete the program to read in a file and count the number of time each letter occurs a z, count both A and a as
Complete the program to read in a file and count the number of time each letter occurs a z, count both A and a as a, also count the number of blanks spaces, and the number of punctuation marks. Print out the results to the screen. Test your code with the three test files (test1.txt, test2.txt, test3.txt) in the Problem 2 repository directory. Copy the screen output and save it to three files labeled out1.txt, out2.txt, and out3.txt, respectively. PLEASE USE C.
Example output:
test1.txt
a - 13
b 8
...
Blanks 35
Punctuation - 12
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