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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 04:30, justbepunky
There is a simple pattern for determining if a binary number is odd. what is it and why does this pattern occur? how many bits would you need if you wanted to have the ability to count up to 1000? how high could you count in binary if you used all 10 of your fingers as bits? (finger up means 1, finger down means 0)
Answers: 3
image
Computers and Technology, 22.06.2019 14:20, capo9972
Cengagenowv2 is a comprehensive online learning tool. using cengagenowv2, you may access all of the following except: 2. each time you log in, cengagenowv2 automatically performs a system check and informs you if your computer does not meet the cengagenowv2 system requirements. 3. which tab/page allows you to easily track your assignment scores, number of submissions, time spent, as well as the ability view assign
Answers: 3
image
Computers and Technology, 23.06.2019 16:30, vitothebest1
You have read about the beginnings of the internet and how it was created. what was the internet originally created to do? (select all that apply) share research. play games. communicate. share documents. sell toys
Answers: 1
image
Computers and Technology, 24.06.2019 09:30, bhadd4385
What is the definition of digital literacy?
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 in other subjects:

Konu
Mathematics, 24.05.2021 01:00
Konu
Social Studies, 24.05.2021 01:00