Find the difference between two types of returning values


Find the difference between two types of returning values.

Implement the following function prototypes (which take hours of work as integer and the rate of pay as float and calculates the net-payment as float) on paper. Also, write a main function which calls both functions.

Compare the calculated net values and show the proper message whether or not they match. Name your variables as hours, rate, and netPay. float calNetPay(int, float); void calNetPay2(float&, int, float); Also, answer the following questions: What does the operator & do?

Create a table and put all of the variables of the program inside the first column. The second column should show the scope of each variable. For example for calNetpay2 function if you called the integer variables hours, its scope will be the function calNetPay2.

Solution Preview :

Prepared by a verified Expert
Computer Engineering: Find the difference between two types of returning values
Reference No:- TGS01522213

Now Priced at $10 (50% Discount)

Recommended (91%)

Rated (4.3/5)