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 08:00
While studying chemical reactions and conservation of matter, sarah's class conducted a variety of experiments. sarah and her lab partner found the mass of a wax candle and placed the candle in a flask. the students lit the candle and let it burn to completion. all that was left was wax and charred candle wick. per their teacher's instructions, the students found the mass of the products. their data can be seen in the data table. formulate a hypothesis the students could test to explain why the experiment did not support the law of conservation of matter. a) the students could repeat the experiment using different candles; there might have been a flaw in the candle. b) the experiment should be repeatable. the students should run several trials and then take an average of the after mass in each trial. c) the students should have someone in the class check their measurement skills as they repeat the experiment. they may have made an error using the balance. d) the students should burn the candle in a container that has some type of lid so that any gas that is a product of the reaction can be contained and massed. submit
Answers: 2
question
Physics, 22.06.2019 11:10
Assume this car is driven off a cliff . how many arrows of force need to be drawn in the free body diagram? assume no air resistance -five -one -three -four
Answers: 1
question
Physics, 22.06.2019 18:30
Two 2.0-cm-diameter disks face each other, 1.0 mm apart. they are charged to ±10 nc. what is the electric field strength between the disks? a proton is shot from the negative disk toward the positive disk. what launch speed must the proton have to just barely reach the positive disk?
Answers: 1
question
Physics, 22.06.2019 20:00
Positive ions differ from neutral atoms in that
Answers: 3
You know the right answer?
Define a method pyramidVolume with double parameters baseLength, baseWidth, and pyramidHeight, that...
Questions