Question: In this exercise, you will create a program that displays the gross pay for one or more employees. If necessary, create a new project named

In this exercise, you will create a program that displays the gross pay for one or more employees. If necessary, create a new project named Introductory17 Project, and save it in the Cpp8\Chap09 folder. The program should allow the user to enter the number of hours the employee worked and his or her hourly pay rate. Use a negative sentinel value to stop the program. Employees are paid at their regular pay rate for hours worked from 1 through 37. They are paid time and one-half for the hours worked from 38 through 50, and double-time for the hours worked over 50. Use a program-defined function to calculate and return the employees overtime pay, if applicable. Enter your C++ instructions into a source file named Introductory17.cpp. Also enter appropriate comments and any additional instructions required by the compiler. Test the applica- tion appropriately. (Hint: If an employee earns $10 per hour and works 37 hours, the gross pay is $370.00. If he or she works 38 hours, the gross pay is $385.00. If he or she works 51 hours, the gross pay is $585.00.)

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!