Question: ****PLEASE DO THIS PROBLEM IN C++***** Chapter 9, Programming Challenge #5 (p.545) The following function uses reference variables as parameters. Rewrite the function so it

****PLEASE DO THIS PROBLEM IN C++*****
Chapter 9, Programming Challenge #5 (p.545) The following function uses reference variables as parameters. Rewrite the function so it uses pointers instead of reference variables, and then demonstrate the function in a complete program int doSomething (int &x, int &y) l int tempx; x = y * 10; y = temp * 10; return x + y; Note: Your program should ask the user for 2 integer values, and print 3 integer values back Sample Output: Please Enter a value for x? 7 Please Enter a value for y? 8 The result of the function was: 150 x's current value is 80 y's current value is 70 Press any key to continue
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
