Question: Java: The purpose of this project is to determine the frequency of characters/key-strokes in any writing. By performing an analysis, you may determine the number

Java: The purpose of this project is to determine the frequency of characters/key-strokes in any writing. By performing an analysis, you may determine the number of key strokes required for the type of characters in a file. You should able to answer a question, such as, how many times the character a, z, or D occurs. It would be interesting to know the frequency of key strokes in your own writing. In this project, you are to develop a Java program that reads a plain text content from an input file and performs the following tasks.

1. You may read one character at a time from the input file. For testing purpose, use the file lisp.txt provided along with this project.

2. You can determine the type of key stroke from the character you read. Please note that the lowercase a and the uppercase A are different characters as they require different key strokes. They do have different Unicode code assigned to them also.

3. Keep track of the frequency or the occurrence of the characters/key-strokes.

4. Generate a report and a. Display the report on the standard output device b. Print the report into an output file called output.txt.

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!