Question
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
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 digits, characters, punctuation, and "other" characters that occur in the file. Output should be to the screen in two columns of neatly-formatted data, where each data type is listed along with the count of items. 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 put to the screen. You can use your own source file for testing. 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