Question: Write a payroll program that calculates an employees weekly salary. The user should be able to input the number of hours worked, and the hourly

Write a payroll program that calculates an employees weekly salary. The user should be able to input the number of hours worked, and the hourly wage. If the employee works more than 40 hours a week, they make time and a half meaning their hourly rate is increased by 50% for every hour worked after 40 hours. For example: 20 hours worked at $30/hr = 20 hours * $30/hr = $600. 50 hours worked at $30/hr = 40 hours * $30/hr + 10 hours * $30/hr * 1.5 overtime multiplier = $1650.

In c++

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!