Im not asking for an answer. Would just need a small detailed explanation of what I would need to code this program.
Define a function PyramidVolume with double parameters baseLength, baseWidth, and pyramidHeight, that returns as a double the volume of a pyramid with a rectangular base. Relevant geometry equations:
Volume = base area x height x 1/3
Base area = base length x base width.
______________________________________________________________________________
The PyramidVolume function is already declared. Your task is to define it.
To turn the declaration on line 4 into a definition you remove the semicolon at the end and replace it with a pair of curly brackets { }. Next step will be to put the code for the function, as described, inside the curly brackets.