#Sales Offer!| Get upto 25% Off:

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

Found something interesting ?

• On-time delivery guarantee
• PhD-level professional writers
• Free Plagiarism Report

• 100% money-back guarantee
• Absolute Privacy & Confidentiality
• High Quality custom-written papers

Related Model Questions

Feel free to peruse our college and university model questions. If any our our assignment tasks interests you, click to place your order. Every paper is written by our professional essay writers from scratch to avoid plagiarism. We guarantee highest quality of work besides delivering your paper on time.

Grab your Discount!

25% Coupon Code: SAVE25
get 25% !!