68.8k views
0 votes
Define a method 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. (watch out for integer division).

1 Answer

2 votes
Define a method 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. (watch out for integer division).
User Stevie
by
8.1k points
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.

9.4m questions

12.2m answers

Categories