subject
Physics, 15.02.2020 00:35 Hazy095

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. Relevant geometry equations:

Volume = base area x height x 1/3
Base area = base length x base width.
(Watch out for integer division)

import java. util. Scanner;

public class CalcPyramidVolume {

/* Your solution goes here */

public static void main (String [] args) {
System. out. println("Volume for 1.0, 1.0, 1.0 is: " + pyramidVolume(1.0, 1.0, 1.0));
return;

ansver
Answers: 2

Another question on Physics

question
Physics, 22.06.2019 02:30
Which feature of a heating curve indicates a change ofn state
Answers: 1
question
Physics, 22.06.2019 07:30
The slope of a velocity time graph over any interval of time gives the during that interval
Answers: 2
question
Physics, 22.06.2019 10:10
Henry, whose mass is 95 kg, stands on a bathroom scale in an elevator. the scale reads 830 n for the first 2.4 s after the elevator starts moving, then 930 n for the next 2.4 s. part a what is the elevator's speed 4.8 s after starting? express your answer with the appropriate units.
Answers: 2
question
Physics, 22.06.2019 13:00
What causes the formation of ocean currents?
Answers: 1
You know the right answer?
Define a method pyramidVolume with double parameters baseLength, baseWidth, and pyramidHeight, that...
Questions
question
Mathematics, 03.12.2021 04:20
question
Mathematics, 03.12.2021 04:30
question
Computers and Technology, 03.12.2021 04:30
Questions on the website: 13722360