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 does the character Mrs. Johnson most likely symbolize in the play?
As compared to all of the Roman rulers, Romulus Agustulus was the __________. a. first c. last b. strongest d. weakest
How did the French and Indian War affect the British and ultimately the colonies? A. They gained land but incurred heavy debt. B.They incurred debt and lost ter
What is the meaning and importance of self discipline and self-control? ( Not just in school, but life)
Characterize the main characters in The Outsiders. Are they developed /complex characters? If so, what makes them complex? What makes them round, or flat charac
can you explain the answer for me please and thank you
In the manufacture of 8,000 units of a product, direct materials cost incurred was $154,600, direct labor cost incurred was $84,000, and applied factory overhea
The crust and uppermost mantle make up the rigid outer layer of Earth, which is called the _____.
I was more than a runner: I was a racer. I often asked myself, "Why don't you run faster, Diego?" I could always run faster. I knew it. Running was my life. Run
which sentence is punctuated correctly? A. I have subscribed to Cooking magazine for many years. B. We had to memorize Washington's Farewell Speech. C. Shari r