1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
uysha [10]
4 years ago
12

Define a method pyramidVolume with double parameters baseLength, baseWidth, and pyramidHeight, that returns as a double the volu

me 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;
Physics
2 answers:
Maksim231197 [3]4 years ago
8 0

Answer:  Volume = 8/3

Explanation:

Let x represent the base length, base width and height  

Volume = 2x X 2x X 2x X 1/3 = 8x³/3

When x = 1.0

∴ Volume = 8(1.0)³/3 = 8/3

lara31 [8.8K]4 years ago
3 0

Answer:

Explanation:

Its not a good practice to write all the functions including main() in the same class.

But as you opted for this, the code goes here like this:

public class CalcPyramidVolume {

/* Your solution goes here */

static double pyramidVolume(double baseLength, double baseWidth, double pyramidHeight)

{

double Volume,baseArea;

baseArea = baseLength * baseWidth;

Volume = baseArea * pyramidHeight * 1/3;

return Volume;

}

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;

}

}

And there is not caveat of integer division, as you are declaring all your variables of type double.

You might be interested in
If something is 50% efficient, how many joules of wasted energy will there be if 750J of energy is put in?
evablogger [386]

Answer:

375J of wasted energy

Explanation:

Efficiency=work output/work input×100%

50=w.o/750×100

750×50=100w.o

w.o=750×50/100

w.o=75×5

w.o=375J

Wasted energy=750J-375J

=375J

Aliter

If the machine is 50% efficient then it is also 50% inefficient

50%×750J=375J

5 0
2 years ago
A super ball stops bouncing because A) gravity never lets it bounce. B) it loses energy due to friction. C) it cannot gain poten
AlexFokin [52]

Answer:

b

Explanation:

it loses energy due to friction because if it hits objects the objects slow it down and which causes it to start slowing down

6 0
3 years ago
Does poop come out the pp or the butt please help im so confused best awnser gets brainleist
natulia [17]

Answer:

no poop comes out from your but

Explanation:

5 0
3 years ago
Read 2 more answers
A(n) 77.5 kg astronaut becomes separated from the shuttle, while on a space walk. She finds herself 37.3 m away from the shuttle
NeX [460]

Answer:

Explanation:

The speed of the astronaut can be found with the help of law of conservation of momentum .

mv = MV , M is mass of astronaut , m is mass of object thrown , v is velocity of object thrown and V is velocity of  astronaut.

Putting the values

77.5 x V = .94 x 12

V = .14554 m /s

This will be the uniform velocity of astronaut.

Distance to be covered = 37.3 m

time taken = distance / velocity

= 37.3 / .14554

= 256.28 s

= 4.27 minutes.

4 0
3 years ago
A foam cup with negligible specific heat is used as a calorimeter. If you mix 175 g of water at 20.0°C and 125 g of water at 95.
lidiya [134]

Answer:

T = 51.25°C

Explanation:

Applying the law of conservation of energy, we get:

where,

m₁ = mass of cold water = 175 g

m₂ = mass of hot water = 125 g

T = Final temperature of the mixture = ?

Therefore,

(175\ g)(T-20^oC) = (125\ g)(95^oC-T)\\\\T-20^oC = (0.7143)(95^oC-T)\\\\T(1+0.7143) = 20^oC+67.86^oC\\\\T = \frac{87.86^oC}{1.7143}

<u>T = 51.25°C</u>

8 0
3 years ago
Other questions:
  • You calculate that the maximum static friction is 420N. If you apply 500N of force, will the couch slide?
    10·1 answer
  • Mental and emotional health can be improved through exercise true or false
    14·2 answers
  • a 2.00 kg friction-less block is attached to an ideal spring with force constant 315 N/m.Initially, the spring is neither stretc
    11·1 answer
  • A very small tilt in Earth’s axis would likely cause ____.
    11·2 answers
  • Two workers push on a wooden crate. One worker push with a force of 543 N and the other with a force of 333 N. The mass of the w
    14·1 answer
  • Can somebody please help!?
    7·2 answers
  • Each croquet ball in a set has a mass of 0.53 kg. The green ball, traveling at 14.4 m/s, strikes the blue ball, which is at rest
    6·1 answer
  • The demand for your hand-made skateboards, in weekly sales, is q = −3p + 700 if the selling price is $p. You are prepared to sup
    7·1 answer
  • An object that’s
    13·2 answers
  • a rocket traveling at 31 m/s Fars it’s retrorockets generating a negative acceleration. The Rockets are fired for 17 seconds aft
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!