questionin this assignment you will plan and


Question

In this Assignment, you will plan and write a GUI program to calculate pay for different types of employees. Your program should have following components-

1. Combo box to select the type of employee.

2. Two text fields to input the number of hours worked and pay rate.

3. A button to calculate the total pay.

4. Labels where appropriate.

The types of employees are as follows:

1. Salaried - These employees do not get paid by hour and earn $2000 plus a weekly bonus. Use a JOptionPane to ask for a weekly bonus.

2. Hourly - These employees are paid a sure amount per hour. Any work in excess of 40 hours is paid at time and a half

3. Volunteer - These employees do not get paid anything.
If Salaried or Volunteer is selected in the combo box, the hours and rate text fields have to be disabled, as they are not needed. Whenever employee type is changed, the hour's text field have to reset to 0 and the rate text field should reset to 0.0. If calculate button is pressed when no employee type is selected, use a JOptionPane to tell the consumer to select an employee category.

 

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: questionin this assignment you will plan and
Reference No:- TGS0444000

Expected delivery within 24 Hours