Q1 Write a program to calculate overtime pay of 10 employees. Overtime is paid at the rate of Rs. 12.00 per hour for every hour worked above 40 hours. Assume that employees do not work for fractional part of an hour.

Program: 94

Write a c program to calculate overtime pay of 10 employees. Overtime is paid at the rate of Rs. 12.00 per hour for every hour worked above 40 hours. Assume that employees do not work for fractional part of an hour.

Output:

 Enter the working hours of employee no 1: 30
 You have to work for more than 40 hours to get over time pay
 Enter the working hours of employee no 2: 43
 Employee No 2 overtime pay is 36.00
 Enter the working hours of employee no 3: 23
 You have to work for more than 40 hours to get over time pay
 Enter the working hours of employee no 4: 55
 Employee No 4 overtime pay is 180.00
 Enter the working hours of employee no 5: 44
 Employee No 5 overtime pay is 48.00
 Enter the working hours of employee no 6: 32
 You have to work for more than 40 hours to get over time pay
 Enter the working hours of employee no 7: 42
 Employee No 7 overtime pay is 24.00
 Enter the working hours of employee no 8: 69
 Employee No 8 overtime pay is 348.00
 Enter the working hours of employee no 9: 32
 You have to work for more than 40 hours to get over time pay
 Enter the working hours of employee no 10: 4
 You have to work for more than 40 hours to get over time pay

Lokesh Kumar

Being EASTER SCIENCE's founder, Lokesh Kumar wants to share his knowledge and ideas. His motive is "We assist you to choose the best", He believes in different thinking.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.