Question: It's a C++ Programming use Dev C++. Please make it clear. Thank you. 3. Write a program that will prompt for and read a number

 It's a C++ Programming use Dev C++. Please make it clear.

It's a C++ Programming use Dev C++. Please make it clear.

Thank you.

3. Write a program that will prompt for and read a number of hours worked and a wage rate and then call a float valued function, calcwage, which will calculate and return the total wages earned. If the hours worked are 40 or less, then the total wages are hours worked times the wage rate. If the hours worked are over 40, then the total wages for the first 40 hours are paid at the regular rate and wages for hours worked over 40 hours are paid at 1.5 times the regular rate. The program should then display the total wages with a dollar sign and two places of accuracy. Notes: The calcwage function returns the total wages earned - it does not display it; the function should not contain any cout nor cin statements. Here is the statement you can use to output the rounded result - remember to include iomanip: 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!