Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning VB.NET Databases

Authors: Thearon Willis

1st Edition

1594864217, 978-1594864216

More Books

Students also viewed these Databases questions

Question

What was the role of the team leader? How was he or she selected?

Answered: 1 week ago

Question

How are members held accountable for serving in the assigned roles?

Answered: 1 week ago