The payments made to the employee are based on the hours he has worked. Ideal working hours per day is 8 hours and for that 1500 is paid to the employee.
The calculation of salary based on hours worked is,
- Hours worked = 8, payment = 1500.
- Hours worked < 8, pay less, 75 per hour.
- Hours worked > 8, pay more, 75 per hour
Python program to calculate gross pay
Output:
need an explanation for this answer? contact us directly to get an explanation for this answer