Question: C++ please Jump to level 1 Define the following modular functions: - CalcPyramidBaseArea() takes two double parameters as a pyramid's base length and base width.
C++ please
Jump to level 1 Define the following modular functions: - CalcPyramidBaseArea() takes two double parameters as a pyramid's base length and base width. The function returns the area of the pyramid's base as a double. The area of the base is calculated by: Area = base length base width - CalcPyramidVolume() takes three double parameters as a pyramid's base length, base width, and height. The function returns the pyramid's volume as a double, using the CalcPyramidBaseArea() function. The volume is calculated by: Volume=baseareaheight3.01.0 Ex: If userBaseLength is 5.0, userBaseWidth is 3.0 , and userHeight is 4.0 , then the output is: Base area: 15.0 Volume: 20.0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
