Sunday
November 23, 2014

Homework Help: Programming with Eclipse

Posted by Marie on Thursday, May 10, 2012 at 5:29pm.

Design, implement, test, and debug an application to compute an employee’s weekly pay. If the employee works more than 40 hours a week, the employee earns 1.5 times the basic hourly pay for any time worked over 40 hours. The program should allow the user to input the employee’s name, the number of hours worked, and the hourly rate.

• The application should include a Calculate button that, when pressed, computes and displays the total pay in a label or text field.
• The program should allow the user to enter information for any number of employees in this manner.
• Include an Exit button to end the execution of the application.
• The program should allow the user to select the employee’s department from a menu. This can be a standard menu, radio buttons, or a JComboBox. Create your own list to populate the menu: Marketing, IT, Accounting, and so forth.
• Include at least five departments.
• Validate the employee’s hourly wage and hours worked according to the following rules:

o The hourly wage must be at least $6 per hour and cannot be more than $150 per hour. It must be numeric.
o The hours worked must be a numeric value greater than or equal to 0 and cannot be greater than 60.

• Create a JTextArea, JTable, or other form of a table to your application and use that to list the following for every employee:

o Name
o Department
o Weekly salary

• Add each employee to the list after you have computed that employee’s salary.

Answer this Question

First Name:
School Subject:
Answer:

Related Questions

math- help again please - An employee earns $7.00 and hour for the first 35 ...
programming - Temp Employer wants a program that will allow the company’s clerk ...
Programing - write a pseudocode for a program that asks for the Employee ID, the...
accounting - An employee earns $40 per hour and 1.75 times that rate for all ...
Chilcare - If an employee in your center earns $ 9,500 a year, how much federal ...
S.A.T Math - I do not understand This: Employee x is paid $12.50 an hour for the...
business - can someone help me with some information on each one of this. ...
business - can someone help me with some information on each one of this. ...
accounting - An employee earns $40 per hour and 1.75 times that rate for all ...
business accounting - can someone help me with some information on each one of ...

Search
Members