subject

In this assignment, you will create a Java program to read a text file and count the frequency of its words. 1. The input file name is passed in as the arguments at command line. For example, assume your package name is FuAssignment8 and your main class name is FuMain8, and your executable files are in "C:\Users\2734848\eclipse-workspace \CIS 265 Assignments\bin". The following command line will read from a local file "cat. txt": C:\Users\2734848\eclipse-workspace\ CIS 265 Assignments\bin > java FuAssignment8.FuMain8 cat. txt 2. If the program is run with incorrect number of arguments, your program must print an error message and exit. The error message must show correct format to run your program, e. g., "Usage: FuAssignment8.FuMain8 input_file" where FuAssignment8 is the package and FuMain8 is the main class. 3. The program will read from the file and count the occurrence of each word. 4. The program then print the words and their frequencies in alphabetical order. 5. Given the following input file cat. txt: you fit into me like a hook into an eye a fish hook an open eye your program will print: Display entries in ascending order of key a: 2 an: 2 eye: 2 fish: 1 fit: 1 hook: 2 into: 2 like: 1 me: 1 open: 1 you: 1 II. Implementation Requirements The program can be implemented in a main class. β€’ You may reuse the code from previous assignments.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 17:50
Farah works in an office with two other employees. all three share a printer and an internet connection. the utility that makes this possible is defragger quicktime soho winzip
Answers: 1
question
Computers and Technology, 23.06.2019 23:40
4. what is the reason for including the following code snippet in the header file animal.h? #ifndef animal_h #define animal_h class animal { public: animal(); animal(double new_area_hunt); void birth(); void hunt(double new_area_hunt); void death(); double get_area_hunt() const; private: double area_hunt; }; #endif
Answers: 3
question
Computers and Technology, 24.06.2019 06:30
Ineed to know the anwser to all these questions
Answers: 2
question
Computers and Technology, 24.06.2019 12:30
Nikki sent flyers in the mail to all houses within the city limits promoting her computer repair service what type of promotion is this and example of
Answers: 1
You know the right answer?
In this assignment, you will create a Java program to read a text file and count the frequency of it...
Questions
Questions on the website: 13722362