Question: write a java program to calculate the weekly pay for temporary staff in a company. the program will ask the user to enter the number

write a java program to calculate the weekly pay for temporary staff in a company.

the program will ask the user to enter the number of hours worked in a week and the wage per hour.

The weekly pay is calculated by multiplying the two numbers. The program will also calculate the bonus as follow:

- if the staff works 20 hours or below in a week, the bonus is $0;

- if the staff works between 21 and 30 hours, the bonus is $50;

- if the staff works between 31 and 40 hours, the bonus is $100;

- if the staff works more than 40 hours, the bonus is $200.

Finally, the program will print the pay, the bonus, and the total pay (pay + bonus)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!