Answer:
The C++ method is defined as follows:
double calcPyramidVolume(double baseLength, double baseWidth, double pyramidHeight){
double baseArea = calcBaseArea(baseLength, baseWidth);
double volume = baseArea * pyramidHeight;
return volume;
}
Explanation:
This establishes the calcPyramidVolume method
double calcPyramidVolume(double baseLength, double baseWidth, double pyramidHeight){
This invokes the calcBaseArea method to derive the base area of the pyramid
double baseArea = calcBaseArea(baseLength, baseWidth);
This calculates the volume based on the base area
double volume = baseArea * pyramidHeight;
This yields the calculated volume
return volume;
}
Refer to the attached document for the complete program that includes all required methods.