Write a program that takes the base pay of the employee and hours worked as input (Check for invalidinputs). – Essaylink

Get your Assignment in a Minimum of 3 hours

Our academic experts are ready and waiting to assist with any writing project you may have. From simple essay plans, through to full dissertations, you can guarantee we have a service perfectly matched to your needs.

Free Inquiry Order A Paper Now Cost Estimate

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

find the cost of your paper

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.

"Is this question part of your assignment? We Can Help!"

"Our Prices Start at $11.99. As Our First Client, Use Coupon Code GET15 to claim 15% Discount This Month!!"

Get Started