An employee gets paid (hours worked) × (basic pay), for each hour up to 40 hours.
For every hour over 40, they get overtime = (basic pay) × 1.5. The basic pay must not be less than the minimum wage ($8.00 an hour).
If it is, print an error.
If the number of hours is greater than 60, he is paid for 60 hours
Write a program to calculate for each of these employees:
Basic Pay Hours Worked
Employee 1 $7.50 35
Employee 2 $8.20 47
Employee 3 $10.00 73
Employee 4 $7.00 65
No comments:
Post a Comment