Show Bid Request
stream and sort files
Bid Request Id: 21468
|
|
|
Posted by: |
seatiger74 (25 ratings)
(Software buyer rating 10)
|
Non-action Ratio: |
Very Good - 3.23%
|
Buyer Security Verifications: |
Good
|
Approved on: |
Jul 12, 2002 1:54:15 AM EDT
|
Bidding Closes: |
Jul 14, 2002 1:59:38 AM EDT
|
Viewed (by coders): |
356 times
|
Deadline: |
7/15/2002
TIME EXPIRED
|
|
|
|
Description:
Write a program as follows:(in Java)
[Objective] The program reads from a text file and creates a report file as to frequency of each letter (alphabets only) contained in the text file. In the report file, the most frequently used letter with its frequency is displayed first. [Command Line Interface] The program is to be run from the DOS (command) prompt window as follows: java LetterFreq inputFile outputFile where LetterFreq is the java class name, inputFile is the name of any text file, and outputFile is the name of the report file. For example, if we type from the dos prompt window: java LetterFreq essay1.txt result.txt Then, the program reads essay1.txt file, and creates result.txt where letter frequency information about the essay1.txt file is stored. The report file may look like: (Note that sorting is done based on the frequency) BE SURE TO USE sort method in Arrays class to do the sorting. E 19.5% S 8.1% T 7.5% … Note that the program should inform the user if the command is not properly used. For example, both inputFilename and outputFilename should be provided at the dos prompt window. Also the program should handle all exceptions properly such as “file not found”, “file cannot be created”, etc.
Hint for the command line arguments
Suppose that you typed from the dos prompt window as follows java LetterFreq aaa bbb You can check at the main method what has been typed from the dos prompt window public static void main(String[] args) { System.out.println(args.length); // 2 System.out.println(args[0]); // aaa System.out.println(args[1]); // bbb Be sure to give javadoc stylecomments.
Deliverables: Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
Complete copyrights to all work purchased.
Platform:
I use window Me, using textPad to compile and run Java program ( with Java software in the background)
Must be 100% finished and received by buyer on:
Jul 15, 2002 EDT
Deadline legal notes: All times are expressed in the time zone of the site EDT (UT - 5). If the buyer omitted a time, then the deadline is 11:59:59 PM EDT on the indicated date.
Special Conditions / Other:
Please send the codes ontime
Remember that contacting the other party outside of the site (by email, phone, etc.) on all business projects < $500 (before the buyer's money is escrowed) is a violation of both the software buyer and seller agreements.
We monitor all site activity for such violations and can instantly expel transgressers on the spot, so we thank you in advance for your cooperation.
If you notice a violation please help out the site and report it. Thanks for your help.
|
|
Bidding/Comments:
|
All monetary amounts on the site are in United States dollars.
Rent a Coder is a closed auction, so coders can only see their own bids and comments. Buyers can view every posting made on their bid requests. |
See all rejected bids (and all comments)
Name |
Bid Amount |
Date |
Coder Rating |
|
|
This bid was accepted by the buyer!
|
$13 (USD)
|
Jul 12, 2002 1:27:39 PM EDT
|
9.95
(Excellent)
|
|
|
You know I can do it.
thanks, bokbokan |
|
|
|
|
|