Question: Using c# please Design a program that reads an ASCII text file (provided) one byte at a time and produces an output file that contains

Using c# please
 Using c# please Design a program that reads an ASCII text
file (provided) one byte at a time and produces an output 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 a Vector or equivalent). Reading the entire file into memory is prohibited. C++ and Java programs are expected to use the Vector data structure and C# and VB programs are expected to use the ArrayList data structure. Vector Documentation ://msdn.microsoft.c library/9xd04bzs.a Java http://docs.oracle.com/iavase/7/docs/api/iava/util/Vector.htm C#/VB ( .NET) For example, given the sample input file: Hello. Would yield the following output file (13) 1 (72)1 e(11)1 1(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. Th e program should be able to be executed from the command line using the following syntax: programname.exe outFile> For example, counter.exe myInput.txt Count.txt Where counter.exe is the program name, mylnput.txt is the input ASCII file, and the Count.txt is the output file The character frequency class must implement the essence of the object described in the UML 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 a Vector or equivalent). Reading the entire file into memory is prohibited. C++ and Java programs are expected to use the Vector data structure and C# and VB programs are expected to use the ArrayList data structure. Vector Documentation ://msdn.microsoft.c library/9xd04bzs.a Java http://docs.oracle.com/iavase/7/docs/api/iava/util/Vector.htm C#/VB ( .NET) For example, given the sample input file: Hello. Would yield the following output file (13) 1 (72)1 e(11)1 1(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. Th e program should be able to be executed from the command line using the following syntax: programname.exe outFile> For example, counter.exe myInput.txt Count.txt Where counter.exe is the program name, mylnput.txt is the input ASCII file, and the Count.txt is the output file The character frequency class must implement the essence of the object described in the UML

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!