Programming with Eclipse

posted by .

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.

  • Programming with Eclipse -

    What have you done so far and what is your question?

Respond to this Question

First Name
School Subject
Your Answer

Similar Questions

  1. math- help again please

    An employee earns $7.00 and hour for the first 35 hours worked in a week, and $10.50 for any hours over 35. One paycheck (before deductions) was for $308.00.How many hours did the employee work?
  2. programming

    A small startup software developer company needs to create a program that will calculate the pay of its employees. For the first version of the program, the company wants the program to accept an employee’s name, the number of hours …
  3. computers

    I have just started a basic class in programming and I am totally lost. Can someone help me out?
  4. CIS115

    A small startup software developer company needs to create a program that will calculate the pay of its employees. For the first version of the program, the company wants the program to accept an employee’s name, the number of hours …
  5. computer

    A small startup software developer company needs to create a program that will calculate the pay of its employees. For the first version of the program, the company wants the program to accept an employee’s name, the number of hours …
  6. CSI 115 Logic And Design

    Hi I know you have got this same question ask to you a lot, but mine is for week 2 unstead of week 1. This week they want me to come up with and Create the Modular Design for the same subject as week 1, example underneath please. A …
  7. Information Systems Technology

    Tom’s Paper Company Ltd wants to produce a payroll register using a program. The data entry clerk is required to enter data for each employee, which comprises of: the employee number (integer), the employee last name (string), the …
  8. Programming

    Develop a Java application that will determine the gross pay for each of three employees. The company pays “straight line” for the first 40 hours worked by each employee and pays “time and a half” for all hours worked in excess …
  9. Bachelor of computer science

    A program is required to calculate the weekly pay for an employee. The pay clerk inputs an employee ID, hours worked and an hourly rate. The program will output the employee ID, and Gross Pay. Gross Pay is the sum of regular pay plus …
  10. Programming

    Widget company runs a small factory that makes several types of nuts and bolts. They employ (a)1 (b)2 (c)3. Each factory worker can work a maximum of (a)40 hours normal working hours per week. All hours over 40 are paid as over-time …

More Similar Questions