Question: Q4 (25 pts). Writo a programmer-defined function named CalculateCubeAreaOrVolume (... using math.h library that calculates the area or volume of the cube, recelves two arguments
Q4 (25 pts). Writo a programmer-defined function named CalculateCubeAreaOrVolume (... using math.h library that calculates the area or volume of the cube, recelves two arguments cholce as the type of calculation (a/A for area and v/ for volume) in the char data type and side as the length of one side of the double data type and will not return any value. (No need to write main function). Hint: Uso pow function to calculate for both area and volume Area formula: 6 * side * side Volume formula: 6 * side * side * side
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
