Foo Corporation needs a program to calculate how much to pay their hourly employees. The USDepartment of Labor requires that employees get paid time and a half for any hours over 40 that theywork in a single week. For example, if an employee works 45 hours, they get 5 hours of overtime, at1.5 times their base pay. The State of Massachusetts requires that hourly employees be paid at least$8.00 an hour. Foo Corp requires that an employee not work more than 60 hours in a week.An employee gets paid (hours worked) × (base pay), for each hour up to 40 hours.For every hour over 40, they get overtime = (base pay) × 1.5.The base 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, print an error message.Write a program that takes the base pay of the employee and hours worked as input (Check for invalidinputs). Calculate the total pay for employee and output the result in the following format:Test Case 1Enter your base pay per hour: 8.50Enter the number of hours you worked: 45Your total pay is: $403.75You overtime is: 5 hrs
The post Write a program that takes the base pay of the employee and hours worked as input (Check for invalidinputs). appeared first on Best Custom Essay Writing Services | EssayBureau.com.
Save your time - order a paper!
Get your paper written from scratch within the tight deadline. Our service is a reliable solution to all your troubles. Place an order on any task and we will take care of it. You won’t have to worry about the quality and deadlinesOrder Paper Now