Question: Write a program that asks an employee how many hours were worked this week. The base pay rate is $12.50 / hr. For overtime hours

 Write a program that asks an employee how many hours were
Write a program that asks an employee how many hours were worked this week. The base pay rate is $12.50 / hr. For overtime hours (over 40), the employee should be paid 1.5 times the base rate (or 0.5 times base rate as a bonus...however you want to see it).
Output 1:
Enter the hours worked for the week as a whole number: [assume user types: 42]
You worked 2 overtime hours
Your total pay this week is $537.5
Output 2:
Enter the hours worked for the week as a whole number: [assume user types: 36]
Your total pay this week is $450
Hints and Notes:
1) There are many ways to do the math here. Use whatever method you are comfortable with, as I assume youve calculated this for your own job before.
2) Do NOT use an ELSE for this question. IF only.

1853504301775 HWOUS 3. Quesetion 3 - Overtime pay We a program take an employee how many house word wat he bare pe to overcome over een vold be passed DI Enter the hours wonted for the week as a whole weer types of You woted overtime hours You pay the week 375 Our Enter the hours word for the weet 10 pavis week 5450 Your Own 11 There are many ways to me the weed you como 21 DO NOT to getton X NO Grading code CPPO O New 1/ CONSTANTS AND VARIABLES 1 INPUT cout

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!