Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Design a program that reads in an ASCII text file (provided) and creates an output file that contains each unique character and the number of

Design a program that reads in an ASCII text file (provided) and creates an output file that contains each unique character and the number of time the character appears in the file. Do not sort the output. Each unique character in the file must be represented by a character frequency class instance. For this exercise, the character frequency objects must be stored in a Linked List. Read the input file character-by-character. Reading the entire file into memory is prohibited.

For example, given the sample input file: Hello. The output file would look like this: H(72) = 1 e(101) = 1 l(108) = 2 o(111) = 1 .(46) = 1

The character frequency class must implement the properties and methods given in the UML diagram below.

CharacterFrequency UML

-ch : char -frequency : int

+getCharacter() : char

+setCharacter(character : char)

+getFrequency() : int

+setFrequency(frequency : int)

+increment()

+Equals() : bool

+ToString() : string

Please write the code in C#

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

Step: 3

blur-text-image

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

Professional Microsoft SQL Server 2012 Administration

Authors: Adam Jorgensen, Steven Wort

1st Edition

1118106881, 9781118106884

More Books

Students also viewed these Databases questions

Question

What is dividend payout ratio ?

Answered: 1 week ago

Question

Explain the factors affecting dividend policy in detail.

Answered: 1 week ago

Question

What is the basis for Security Concerns in Cloud Computing?

Answered: 1 week ago

Question

Describe the three main Cloud Computing Environments.

Answered: 1 week ago