Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!