Question: You may be asked to create a function to solve each of the tasks given below. For each task state the purpose of the function,
You may be asked to create a function to solve each of the tasks given below. For each task state the purpose of the function, what the function needs complete the task (input), what the function will send back to the function call (output), and the process (algorithm) needed to complete the task. Do not write any C++ code, but clearly specify input needed, output expected, and algorithm. Also state which parameters should be passed by value and which should be passed by reference. 1. Design a function that will calculate both the volume and surface area of a sphere given a radius (validated elsewhere in the program). Your function should not contain any input statements or any out the function call. put statements. Both the volume and surface area should be sent back to
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
