Question: Write a C++ program to calculate the pay for an employee. The program inputs the pay rate per hour and the number of hours worked

Write a C++ program to calculate the pay for an employee. The program inputs the pay rate per hour and the number of hours worked per week from the user. The program echoes the input information and outputs the calculated pay. Include a void function, called GetData, which takes two arguments and inputs the pay rate and the number of hours worked. Include another value returned function, called CalcPay, which takes two arguments and returns the total pay for that employee. Include a final void function, called PrintPay, which takes three arguments and outputs the input information and the calculated total pay.

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!