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]
3 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]3 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]3 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
I NEED HELP WITH THIS QUESTION ASAP PLEASE!
daser333 [38]
Wood isn’t a medium. Pls give brainliest
8 0
3 years ago
A wagon full of manure accidentally rolls down a driveway for 5.0m while a person pushes against the wagon with a force of 420 N
Cerrena [4.2K]

Answer:

2100 J

Explanation:

Parameters given:

Force acting on the object, F = 420 N

Distance moved by object, d = 5m

The change in kinetic energy of an object is equal to the work done by a force acting on the object:

W = F * d

∆KE = F * d

∆KE = 420 * 5

∆KE = 2100 J

8 0
3 years ago
Read 2 more answers
Could someone help me with some info for an essay?I WILL REPOST FOR 100 POINTS IF YOU CAN.
polet [3.4K]

Answer:

Self-motivation is the surest way to stay focused. Nearly all the most significant tasks in life are tests for our motivation. Facing challenges and achieving success requires focus; this means we need to be responsible for our motivation. People who are motivated towards achieving their goals are focused on success. The following ideas will help you stay focused and motivated in your work and studies.

Explanation:

3 0
3 years ago
A physicist makes a cup of instant coffee and notices that, as the coffee cools, its level drops 3.00 mm in the glass cup. Show
Lady bird [3.3K]

Answer:

change in height  is 1.664 mm

Explanation:

Given data

drops = 3.00 mm

diameter = 5.00 cm = 0.05 mm

decrease  =  350 cm^3

temperature = 95°C to 44.0°C

to find out

the decrease in millimeters in level

solution

we  will calculate here change in volume so we can find how much level is decrease

change in volume = β v change in temp   ...............1

here change in volume = area× height

so = \pi /4 × d² h

so we can say change in volume =  \pi /4 × d² × change in height   .......2

so from equation 1 and 2  we calculate change in height

( β(w) -β(g) )× v× change in temp = \pi /4 × d² × change in height

change in height = 4 × ( β(w) -β(g) ) v× change in temp / \pi /4 × d²

put all value here

change in height = 4 × ( 210 - 27 )(350 ) 10^{-6}× (95-44) / \pi /4 × 0.05²

change in height  is 1.664 mm

5 0
3 years ago
Which is the pathway for information through a neuron?
Mariulka [41]
Information travels along the axon once an impulse is received. The axon then takes it to the place where it can be sent off to another neuron

<span>dendrite → cell body → axon → axon terminals is the correct answer</span>

<span>If I managed to help you, please make sure to mark my answer as the "Brainliest" answer. Thanks! :)</span>
6 0
3 years ago
Read 2 more answers
Other questions:
  • In a container of negligible heat capacity, mix 6kg of ice at -40 ° C with 3kg of steam at 120 ° C, determine the equilibrium te
    5·1 answer
  • A man on the moon with a mass of 90 kilograms weighs 146 newtons. The radius of the moon is 1.74 × 106
    13·2 answers
  • A 20 m high filled water tank develops a 0.50 cm hole in the vertical wall near the base. With what speed does the water shoot o
    8·1 answer
  • A space vehicle is coasting at a constant velocity of 22.3 m/s in the y direction relative to a space station. The pilot of the
    15·1 answer
  • A machine is brought in to accomplish a task which requires 100 ft.-lbs. of work. Which statements are correct:
    7·1 answer
  • In Science, a hypothesis must be _______________.
    14·1 answer
  • Two point charges, initially 3 cm apart, are moved to a distance of 1 cm apart. By what factor does the resulting electric force
    6·1 answer
  • A
    12·1 answer
  • Why does lowering the temperature of an object increase its density
    7·1 answer
  • A thin flexible gold chain of uniform linear density has a mass of 17.1 g. It hangs between two 30.0 cm long vertical sticks (ve
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!