Question: In C++ Exercise 2 In main create a for loop that runs 10 times. From within the for loop, call function named getNumber which is

In C++
Exercise 2 In main create a for loop that runs 10 times. From within the for loop, call function named getNumber which is asking the user to enter a number which in turn calls function myPower which computes the number entered to the power of 3, i.e., n (one function calls another func- tion) and returns the result to getNumber which in turn returns it to main. Print the result of n3 from within for loop. In addition, create a static variable in my Power that displays the number of times myPower has been called Note: Do not use any built-in functions such as pow() Exercise 3 In main ask user to enter two numbers and call function my Addition that adds the two numbers passed. Function myAddition accepts the two numbers, the first one by value and the second one by reference. Store the result of the addition to the reference variable. Do not return any variable to main (i.e., myAddition is void). Print the summation result from within main
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
