Question: code in C In this assignment, you will write a filter program that will take in a file and output a count of the number

code in C

In this assignment, you will write a filter program that will take in a file and output a count of the number of characters in the file. Note that a filter program is one that does not prompt the user for input, but will take in a file and produce a result. With this program, we want to count the number of occurrences of: lowercase alphabet characters, uppercase alphabet characters, digit characters, punctuation characters, newline characters, and 'other' characters that occur in the file. Output should be printed to the screen in two columns of neatly-formatted data, where each type of character item (mentioned above) is listed along with the total count of that item appearing in the file. The final row should include a total count of all characters in the file. This program should be run by typing "program < inputFile.txt", and the output should be printed to the screen. You can use your own source file for testing, or you can submit a separate test file (name it inputFile.txt) and be sure to include it in the submission .tgz archive.

I would suggest looking at including and associated functions for this program.

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!