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

Which group of intellectual women established literary clubs of their own around 1750 under the leadership of Elizabeth Vesey and Elizabeth Montagu? a) the Behn
what are the positive aspects of stereotypes, if any?
Which group of intellectual women established literary clubs of their own around 1750 under the leadership of Elizabeth Vesey and Elizabeth Montagu? a) the Behn
Which of the following are not a spore-bearing vascular plant? a. ferns b. cycads c. club mosses d. horsetails
why are humans more like animals than plants
Roxanne has 1/2 as many beads as Sherie. The number of beads Sherie has is 4/5 that of Marcos. Marcos has 165 beads. How many more beads does Marcos have than R
What ingredients are needed to make GHB?
allen runs 8 miles in 3 hours at a steady pace.  how long does it take him to run 3 miles
what caused the dust bowl
Good thesis statement on how Androids better than iPhones?