Wage Calculator for Employees

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Feb 2008
Posts: 32
Reputation: Katherine692008 is an unknown quantity at this point 
Solved Threads: 0
Katherine692008 Katherine692008 is offline Offline
Light Poster

Wage Calculator for Employees

 
0
  #1
Mar 29th, 2008
Help, Please help me with a program that will prompt the user for the following:

1. First Name
2. Last Name

3. Hourly or Salary

a. If hourly then ask for the following

i. Hours worked
ii. Pay Rate
1. If the hours worked is greater than 40 hours then you must calculate total pay for the first 40 hours at the pay rate given and then calculate hours above 40 at time and a half


b. If salary then ask for a level (You should have at least 2 levels for salaried folks)

i. Level 1 is for recent college grads who are trying to work their way up the ladder and get paid poor wages for a 40 hour work week. (But really they expect 60 hours from you)

ii. Level 2 is for executives who have been there long enough to be in a position to hire college grads to do all their work for them so they can enjoy their weekends and evenings.

iii. The bottom line is just set to constant variables with the yearly salary for either level and calculate the pay based on bi-weekly pay schedule.


4. Be able to print/show the results for the date taken in after all data has been entered.

5. Please put this into a loop that will allow more than one entry.


Thanks for your time and patience
-CHEERS
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 3,584
Reputation: jasimp has a spectacular aura about jasimp has a spectacular aura about jasimp has a spectacular aura about 
Solved Threads: 52
Featured Poster
jasimp's Avatar
jasimp jasimp is offline Offline
Senior Poster

Re: Wage Calculator for Employees

 
0
  #2
Mar 29th, 2008
Post any work you have done on it and ask specific questions regarding your code. We will not do your work for you. Read this.
Last edited by jasimp; Mar 29th, 2008 at 7:31 pm.
"Argyou not with the hand you are dealt in cards or life." ---- Wizard and Glass
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 803
Reputation: darkagn has a spectacular aura about darkagn has a spectacular aura about darkagn has a spectacular aura about 
Solved Threads: 110
darkagn's Avatar
darkagn darkagn is offline Offline
Practically a Posting Shark

Re: Wage Calculator for Employees

 
0
  #3
Mar 30th, 2008
I am assuming that your main question is about accepting user input since that is underlined. You will need to use an InuputStream of some form or another for the standard input of System.in to accept input from a console. Something like:
  1. BufferedReader input = new BufferedReader( new InputStreamReader( System.in ));
will set up a buffered reader for you that reads from standard input. Then you can use the BufferedReader's readLine() method to read a single line of input.

As for the rest of your program, as jasimp said we aren't allowed to do it for you but we will answer specific questions. Have a try and repost if you get into trouble.
There are no stupid questions, only those too stupid to ask for help.
echo is a web developer's best friend.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the Java Forum


Views: 1903 | Replies: 2
Thread Tools Search this Thread



Tag cloud for Java
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC