Question: Employees Weekly Gross Pay Create a C++ program to calculate and display an employees weekly gross pay. The program should ask for the number of

Employees Weekly Gross Pay

Create a C++ program to calculate and display an employees weekly gross pay. The program should ask for the number of work hours in a week and the hourly pay rate, and use these items to calculate gross pay (gross pay = number of work hours * hourly rate). In addition to main(), use the following two functions in your program:

getRateAndHrs(): a void function that asks for hourly rate and number of work hours. Use pass-by-reference to send these two items to main().

calcPay(): a value returning function that calculates and returns gross pay to main().

The main() function should display the gross pay on the computer screen.

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!