Create a C++ program to calculate and display an employee’s 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.
A beginner mistake is thinking that if they post the same thing in multiple places they will get more responses.
I assure you that here, we don't believe in that. Not only do you waist everyone's time reading the same post twice. You confuse the answers you get on multiple threads so that no one is sure what your talking about anymore because it's in a different thread.