Question: Develop a Java program that calculates an employee's grosspay, taking into account the employee's hourly wage, hours worked, overtime rate, and potential bonus rate. Pt
Develop a Java program that calculates an employee's grosspay, taking into account the employee's hourly wage, hours worked, overtime rate, and potential bonus rate.
Pt: Only sets us up to retrieve data in order to calculate the gross pay.
The program should:
Gather Employee Information Focus on LOGIC here:
Prompt the user to enter the employee's hourly wage.
Prompt the user to enter the number of hours worked including overtime.
Determine if the employee is eligible for overtime pay eg hours worked exceed per week
Calculate overtime hours. eg if hours worked is greater than
To Calculate Overtime use the following hourly wage expression.
If applicable, collect the overtime pay rate, should be different from the total hourly wages.
Determine if the employee is eligible for a bonus using the potential bonus rate.
If applicable, collect the bonus amount. eg potential bonus rates must match the table
Use the information from the table below for testing ONLY!!!
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
