Question: Given: double hours _ worked; double pay _ rate; double gross _ pay; Assume the values of hours _ worked, pay _ rate, and gross
Given:
double hoursworked;
double payrate;
double grosspay;
Assume the values of hoursworked, payrate, and grosspay have been entered. Write a Java code fragment to calculate gross pay based upon the following rules:
The employee receives regular pay for first hours.
Pay double time for hours worked over hours and less than
Pay triple time for hours worked over hours.
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
