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 of the following is a direct result of cultural diffusion in the United States over the past century? Shoppers find sushi in the produce section of the l
why is factoring out a gcf helpful
What is the midpoint of a segment whose endpoints are (−3, −3) and (−13, −13)? A. (8, 8) B. (5, 5) C. (−5, −5) D. (−8, −8)
The function of mRNA is __________, while the function of rRNA is __________. A. helping wind the DNA up, producing ATP B. producing ATP, helping wind the
Stuart runs with his brother each morning, and they are able to talk about their plans for the day in short bursts of conversation. Which best describes their h
if water moves into a cell, and the cell swells, what term best describes the environment inside the cell?
While private funding for a campaign may come from a variety of sources, which source provides public funding for a campaign?
Why did the Mughal emperor recognize the right of the British East India Company to collect taxes in northeast India?
What is the square root of 902?
Please help not sure how to do these