Question: Please write a C++ program for this problem An hourly-paid worker have day shift pay rate of $12.50. If the worker works at night, he

Please write a C++ program for this problem

An hourly-paid worker have day shift pay rate of $12.50. If the worker works at night, he is paid night shift rate of $17.25. Ask the user to input the number of hours worked in day and night shift for the week. The number of hours he or she works at each shift may be different. Calculate the total wage of the worker for the week. Format the output of decimal numbers to two decimal places.

Here is a sample run

Enter number of hours worked during day : 25

Enter number of hours worked during night :19

Weekly wage earned at day shift : $ 312.50

Weekly wage earned at night shift : $ 327.75

Total weekly wage = $ 640.25

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!