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, 21.06.2019 22:50
As a car drives with its tires rolling freely without any slippage, the type of friction acting between the tires and the road is 100) a) static friction. b) kinetic friction. c) a combination of static and kinetic friction. d) neither static nor kinetic friction, but some other type of friction. e) it is impossible to tell what type of friction acts in this situation.
Answers: 1
question
Physics, 22.06.2019 05:00
Unpolarized light falls on two polarizer sheets whose transmission axes are at right angles. a third polarizer is placed between the first two so that its axis makes a 52-degree angle with the axis of the first polarizer. a) what fraction of the incident light intensity is transmitted through the first polaroid? b) what fraction of the incident light intensity is transmitted through the second polaroid? c) what is the angle of polarization of the light that enters the third polaroid? d) what fraction of the incident light intensity is transmitted through the third polaroid. e) what happens if the middle polaroid is removed?
Answers: 3
question
Physics, 22.06.2019 14:30
Two carts, one of mass 2m and one of mass m, approach each other with the same speed, v. when the carts collide, they hook together. assume that positive momentum is to the right. which graph best represents the momentum of both carts over time, before and after the collision?
Answers: 3
question
Physics, 22.06.2019 16:00
The electric potential a distance r from a small charge is proportional to what power of the distance from the charge? a. r^-1 b. r c. r^-2 d. r^2
Answers: 1
You know the right answer?
Define a method pyramidVolume with double parameters baseLength, baseWidth, and pyramidHeight, that...
Questions
question
English, 01.09.2020 19:01
question
Mathematics, 01.09.2020 19:01
Questions on the website: 13722363