Design a program that reads an ASCII text file (provided) one byte at a time and produces an output file that contains the frequency count of how many times each character appears in the input file....

Design a program that reads an ASCII text file (provided) one byte at a time and produces an output file that contains the frequency count of how many times each character appears in the input file. Do not sort the output. A character frequency class instance must be used to represent each unique character in the file (see below). For this exercise, the character frequency objects must be processed and stored using an array. For example, given the sample input file: Hello. Would yield the following output file. (10) 1 (13) 1 .(46) 1 H(72) 1 e(101) 1 l(108) 2 o(111) 1 The output file must follow the format presented above. Character(ASCII Value) (tab) Frequency. Note that formatting anomalies are expected due to the nature of the characters themselves (e.g., the tab character, carriage return, etc.) and will not cause a point deduction. The program should be able to be executed from the command line using the following syntax: programname.exe (optional for this assignment). For example, counter.exe myInput.txt Count.txt Where counter.exe is the program name, myInput.txt is the input ASCII file, and the Count.txt is the output file.
Jan 24, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here