login
Forgot?
Login with Facebook

Don't have an account? Register one now!

2 Simple Java Programs 2

Bids 
11
Avg Bid
$58 USD
CLOSED
  • Project ID:

    625968
  • Project Type:

    Fixed
  • Budget:

    $30-$250 USD

Project Description:

Need help developing two java programs for homework extra credit.

Program 1:

A. Create a program that has a GUI and calculates earnings and tutoring time by doing the
following:
1. Create a GUI that allows a user to enter the following into labeled textfields:
• Number of minutes for tutoring session (should be a positive decimal number)
• Earnings in dollars and cents received (should be positive decimal number)
a. GUI should be built using javax.swing components jButton, jLabel, jTextField,
jTextArea, jFrame, and jPanel.
2. Implement functionality for each of the following application buttons:
• “Quit” button: Should exit application
• “Enter” button: Accepts entered number of minutes and earnings; as earnings
information is entered, it is stored in a two-dimensional array
• “Run Report” button: Calculates total minutes of tutoring provided, average wages
earned per hour, total earned to date, and determines if average wage per hour is
below, average, or above minimum wage
Note: For an example, see the attached “Sample GUI.”
3. Use a two-dimensional array to store the entered minutes tutored and earnings
received information for each tutoring session, as illustrated in the attached “Two-
Dimensional Array.”
4. Implement the “Run Report” button to iterate through the two-dimensional array
using a nested for-loop to display the earnings data to the jTextArea, as illustrated in
the attached “Earnings Entered.”
5. Implement the “Run Report” button to calculate the following:
• Total minutes tutoring provided (as a decimal number)
• Average wage per hour (in dollars and cents)
• Total earnings (in dollars and cents)
• Wage analysis, determined based on comparison of average per hour earnings and
current minimum wage, using the following logic:
- if average wages per hour is < minimum wage, then below average
- if average wages per hour is > minimum wage AND ? minimum wage × 2.00,
then average
- if average wages per hour is > minimum wage × 2.00, then above average
6. Display resulting calculations in GUI text area in the required format, as illustrated in
the attached “Calculations Display.”
Note: All results from calculations should be viewable in the text area. Consider
appending to the text area as you write out information.
7. Use exceptions to handle invalid user entries for the following situations:
• If minutes entered is less than or equal to zero, throw exception.
• Tutors should not tutor for longer than 4 hours per day. If minutes entered is
greater than 60 × 4 = 240 minutes, throw exception.
• Tutors must be paid for their tutoring service. If earnings entered is not greater
than or equal to zero, throw exception.
Note: The program should not terminate abruptly if any of these situations are
encountered. The application should print a message “Invalid input. Please try
again.” and let the user continue using the application.

and Program 2:

A. Develop an application that reads your listings.txt file, analyzes the property listed per agent, and outputs a report to an agentreport.txt file. Your application should do the following:

1. Prompt the user for the name of the input file (listings.txt).
2. Use an unbuffered file input stream to open listings.txt file and read in property listings.
3. Store each property type into a Set.
a. Convert property type to upper case before adding to your Set using method(s) from String class.
b. Sort your Set of property types alphabetically.
4. Use a Map to calculate total property listed in dollars and cents for each agent id.

Note: Agent id would be the key, and accumulated total of property listed would be the value.

• Sort your Map by agent id.

• Create an agentreport.txt file.

5. Use an Iterator to iterate through your Set and write your sorted set of property types sold by the agents to the agentreport.txt file using unbuffered file output stream.

6. Iterate through your Map to write your sorted pair of agent id and total property listed to the agentreport.txt file using unbuffered file output stream.

B. Develop an application that reads your listings.txt file, analyzes the properties listed, and outputs an overview of properties listed to an overview.txt file. Your application should do the following:

1. Prompt the user for the name of the input file (listings.txt).
2. Open the listings.txt file and read in property listing information using a buffered FileReader.
3. Count the total number of property listings for sale.
• Use buffered FileWriter to write the count of the number of property listings to your overview.txt file.
4. Calculate the total value of property for sale.
• Use a buffered FileWriter to write the total value of properties currently for sale.
5. Store each property id into an ArrayList.
a. Sort the ArrayList of property ids using natural ordering.
b. Use a for-each loop to iterate through the sorted ArrayList and write property ids to overview.txt file using buffered FileWriter.
6. Use buffered FileWriter to write the total value of the properties listed and the total number of properties currently for sale.

I have all example documents that I can e-mail to winning bid.

Skills required:

Java

Additional Files:

project1.zip project2.zip

Project posted by:

tekeandy United States
(1 Reviews)

Last seen:

If you are the project creator or one of the bidders, please Log In for more options.


Awarded Bids

coderTim Turkey
Untitled-1.jpg
coderTim
Turkey From Turkey     Offline
  Java Level 1 (80%, 87th percentile)
 Accepted
$100 in 0 days 
0
over 1 year ago
4.9

4.8

20 Reviews
65% Completion Rate
can deliver in 1 minute. please see pm.

All Bids ()

thanhhungqb Viet Nam
dali-e-learning.jpeg
thanhhungqb
Viet Nam From Viet Nam     Offline
  General Freelancer Orientation (90%, 98th percentile)
$30 in 2 days 
0
over 1 year ago
5.0

4.7

40 Reviews
85% Completion Rate
Please choose me do it. Thanks.
ultimatesystem Pakistan
ultimatesystem
Pakistan From Pakistan     Offline
  US English Level 1 (88%, 37th percentile)
  General Freelancer Orientation (85%, 95th percentile)
  Foundation LimeExchange Member
$30 in 1 day 
0
over 1 year ago
4.3

4.5

5 Reviews
49% Completion Rate
Lets start right away check PMB for details.
arunjassiar India
arunjassiar
India From India     Offline
  General Freelancer Orientation (90%, 98th percentile)
  Foundation EUFreelance.com Member
$100 in 7 days 
0
over 1 year ago
5.0

3.8

5 Reviews
30% Completion Rate
I can help in these two projects.
talluriamara India
talluriamara
India From India     Offline
  Foundation LimeExchange Member
  Foundation EUFreelance.com Member
$70 in 2 days 
0
over 1 year ago
4.8

3.7

3 Reviews
50% Completion Rate
i can do this.please check PMB
prasunkanti Bangladesh
prasun.png
prasunkanti
Bangladesh From Bangladesh     Gold Member     Online
$35 in 1 day 
0
over 1 year ago
5.0

3.5

15 Reviews
83% Completion Rate
ready for work.
ranacseruet Bangladesh
Banner.gif
ranacseruet
Bangladesh From Bangladesh     Offline
  General Freelancer Orientation (90%, 98th percentile)
  Foundation LimeExchange Member
$100 in 3 days 
0
over 1 year ago
5.0

1.0

1 Review
82% Completion Rate
I am interested..
bahmedk United Kingdom
W4p - Logo_small copy.jpg
bahmedk
United Kingdom From United Kingdom     Offline
$75 in 7 days 
0
over 1 year ago
0.0

0.0

0 Reviews
54% Completion Rate
Hi, It will be great to work with you. I have more tha 5 years of Java/ J2EE experience. Looking for your response. Cheers
Atrigen Israel
or.jpg
Atrigen
Israel From Israel     Offline
$30 in 1 day 
0
over 1 year ago
0.0

0.0

0 Reviews
100% Completion Rate
Looks simple to implement. Done similar projects in the part. Will be discussed further on the message board if needed.
annaboreyko Belarus
annaboreyko
Belarus From Belarus     Offline
$30 in 30 days 
0
over 1 year ago
0.0

0.0

0 Reviews
0% Completion Rate
Hello, my name is Anna and I represent a big software development company EffectiveSoft located in Minsk. We are on IT market for more then 7 years. Here at our company we have more then 200 software developers. We w... more
Hello, my name is Anna and I represent a big software development company EffectiveSoft located in Minsk. We are on IT market for more then 7 years. Here at our company we have more then 200 software developers. We would be glad to assist you by your project. Please check your Inbox for detailed information. Best regards, Anna Boreyko, EffectiveSoft  less
katodos Italy
katodos
Italy From Italy     Offline
  Foundation EUFreelance.com Member
$40 in 1 day 
0
over 1 year ago
i'm a professional programmer