Show Bid Request
homework help for java
Bid Request Id: 45200
|
|
|
Posted by: |
codexp3 (5 ratings)
(Software buyer rating 10)
|
Non-action Ratio: |
Very Good - 0.00%
|
Posted: |
Jan 24, 2003 7:31:49 PM EDT
|
Bidding Closes: |
Feb 7, 2003 7:40:19 PM EDT
|
Viewed (by coders): |
60 times
|
Deadline: |
2/7/2003 7:40:19 PM
TIME EXPIRED
|
|
|
|
Description:
I'm lost on my homework and need a bit of help...i can't figure out a loop that will only
print the distinct words while keeping their count...the lab and my code so far is below...I
just need hepl with one loop...it should take only 15 minutes...I will pay $15 and need the
help as soon as possible as it is driving me nuts...I'd like my code to be modified...so, I
can see what i was doing wrong...
Here's the lab...
In this lab you will write a program that reads in a text file and then display all words
appearing in this file one by one. If a word has appeared more than once you should display
it just one time. You should also display the number of times each word has appeared in the
file. You are required to use JFileChooser to let the user pick the input file. Moreover,
words are considered case-insensitive, meaning "the" and "The" ought to be considered the
same.
For example, if your input file has the following content
Already a force in software for personal digital assistants, Microsoft is ramping up efforts
to provide the operating systems for those devices' close relative: the next generation of
"smart" cell phones that can handle e-mail, digital photos and other data.
Microsoft splashed into the smart-phone scene in Europe last year with a device sold by the
British wireless carrier Orange.
Your output should look like (or very similar to):
already 1 a 2 force 1 in 2 software 1 for 2 personal 1 digital 2 assistants 1 microsoft 2 is 1 ramping 1 up 1 efforts 1 to 1 provide 1 the 4 operating 1 systems 1
here's what i've got...
package arrayreader; import java.io.*; import javax.swing.*; import java.util.*;
public class ArrayThing { public static void main(String[] args) { JFileChooser chooser = new JFileChooser ("C:\\Documents and Settings"); if(chooser.showOpenDialog (null) == JFileChooser.APPROVE_OPTION) { File selectedFile = chooser.g
Deliverables: 1) Complete and fully-functional working program(s)
Platform:
i just want to be able to run the program in jbuilder...
-java-
Must be 100% finished and received by buyer on:
Feb 7, 2003 7:40:19 PM 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.
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!
|
$15 (USD)
|
Jan 24, 2003 9:37:07 PM EDT
|
10
(Excellent)
|
|
|
Hi there,
I can solve this for you. I can either give you the algorithm/pseudo code, so you can implement it yourself quickly or I can write that part for you. Although the latter may or may not require that I download a trial version of JBuilder at Borland's site for this, since I am normally using strict Java SDK. Either way should not be a hassle as it sounds like an easy fix. Just let me know and good luck with your project.
Alex |
|
|
|
|
|