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