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 golfer gives a ball a maximum initial speed of 51.5 m/s. how far does it go
A new mother reports that her niece was diagnosed as an infant with gastroesophageal reflux (ger). the newborn's mother asks the nurse if her newborn also has t
Chapter 3 Terms & Questions Define the following: 1. Attitude 2. Self-esteem 3. Dependability 4. Punctuality 5. Individual responsibility 6. Initiative 7. S
Please help me with this.Evaluate 8r - rs when r=6 and s=5
If one card is drawn from a standard 52 card playing deck, derermine the probability of getting a ten, a king or a diamind.
In a survey, 40% of americans said they owned an answering machine. if 10 americans are selected at random, find the probability that exactly 8 own an answering
Find all values of $t$ such that $t - 1$, $t + 1$, and $4$ could be the lengths of the sides of a right triangle.
(2 + 3)2 =22 + 32 True or false
The shortest compressed format of the ipv6 address 2001:0db8:0000:1470:0000:0000:0000:0200 is
Find the cube root of each number? 1.8 2.216 3.1 4.2197