Computers and Technology

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.

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 17:00, ruddymorales1123
What allows you to create a wireless connection among your smart devices
Answers: 2
image
Computers and Technology, 23.06.2019 04:40, Koriunaa
The narrative structure of the popular movies can be broken down into
Answers: 3
image
Computers and Technology, 23.06.2019 09:30, Princessirisperez0
Given a link with a maximum transmission rate of 32.8 mbps. only two computers, x and y, wish to transmit starting at time t = 0 seconds. computer x sends filex (4 mib) and computer y sends filey (244 kib), both starting at time t = 0. statistical multiplexing is used, with details as follows packet payload size = 1000 bytes packet header size = 24 bytes (overhead) ignore processing and queueing delays assume partial packets (packets consisting of less than 1000 bytes of data) are padded so that they are the same size as full packets. assume continuous alternating-packet transmission. computer x gets the transmission medium first. at what time (t = ? ) would filey finish transmitting? give answer in milliseconds, without units, and round to one decimal places (e. g. for an answer of 0.013777 seconds you would enter "13.8" without the quotes)
Answers: 3
image
Computers and Technology, 24.06.2019 13:30, yola32
What is the most important for you to choose before you build a network?
Answers: 1
Do you know the correct 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, 27.03.2020 22:12
Konu
History, 27.03.2020 22:12