sharonc33531 sharonc33531
  • 25-11-2020
  • Computers and Technology
contestada

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.

Respuesta :

tonb
tonb tonb
  • 25-11-2020

Answer:

double pyramidVolume(double baseLength, double baseWidth, double pyramidHeight)

{

  return baseLength * baseWidth * pyramidHeight / 3.0;

}

Answer Link

Otras preguntas

a. The shorter container has alength, width, and height of 8 inches each. What is its volume?
Which best describes the cross section formed when a plane slices a rectangular prism parallel to its base?
Which of the following is considered a skill?   A. Ryan is a charismatic person. B. Andre likes using computers and the Internet. C. Lisa learns how to set-up
If a company constructs 9 apartment buildings, the number of stores will be
If the average student spends 54 minutes( 15%) walking to and from school, how much time is spent on (5%) lunch?
I need to find out the question mark
In north america, in what direction would you usually have to travel to go from a coniferous forest to a deciduous forest?
9. Which sentence has correct punctuation? The girl, giving her report, is the class valedictorian. The subject, that the class will study tomorrow, is p
What happen in the book old man and the sea?
What is true about both the epidermis and the dermis?