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

what was the main goal of European explorers in the 1500s?
Two reasons why a scientist might want to study the DNA of strawberries?
Can someone help me with this page?
what is 144 over 324 simplified
Michael made a queen size quilt that was 8  feet long.  its area was 64 square feet.  What was its perimeter
If the weight of a package is multiplied by 5/7 the result is 40.5 pounds. Find the weight of the package.
In 1904, the Supreme Court ruled that which of the following was a “combination in restraint of trade”? (A) Sherman Antitrust Act (B) AFL (C) Grange Movement (D
what were some characteristics of Aryan culture ?
Help please 1. Summarize two harmful effects of acid rain 2. Predicting outcome how will the depletion of the ozone layer affect human health 3. Describe the gr
what is 172 over 96.75 simplified?