Wednesday, 22 August 2012

roll no 1-9, 10-19, 20-29, 30-39, 40-50; CODE-CSEL-10x dateline-31st AUG

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

Pro

https://drive.google.com/file/d/1II09HToizTTjISF5TlmGcc2ew_YxiFja/view?usp=drive_link