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
Two insulated current-carrying wires (wire 1 and wire 2) are bound together with wire ties to form a two-wire unit. The wires ar
AysviL [449]

Answer:

I'm not sure, My best friend knows, but I don't...

Explanation:

I'm sorry :)

7 0
3 years ago
How much time does it take a person to walk 12 km north at a velocity of 6.5 km/hr
Stella [2.4K]
1.8461 km/hr Well i need more characters so i might as well type a beautiful sentence for you to read and waste your time on.
3 0
3 years ago
A straight, cylindrical wire lying along the x axis has a length L and a diameter d . It is made of a material described by Ohm'
Zepler [3.9K]

The magnitude and direction of the electric field in the wire are mathematically given as

L &=[(v / L) v / m] \hat{i}

<h3>What is the magnitude and direction of the electric field in the wire?</h3>

Generally, the equation for is  mathematically given as

A cylindrical wire that is straight and parallel to the x-axis has the following dimensions: length L, diameter d, resistivity p, diameter d, potential v, and z length. combining elements from both sides  

E d x=\int d v.

\begin{aligned}&-E \int_0^L d x=\int_v^0 d v \\\therefore E \cdot L &=v \\L &=[(v / L) v / m] \hat{i}\end{aligned}

In conclusion, the magnitude and direction of the electric field in the wire are given as

L &=[(v / L) v / m]

Read more about electric fields

brainly.com/question/15800304

#SPJ4

7 0
2 years ago
At a certain instant, the speedometer of the car indicates 80 km/h.
Scorpion4ik [409]

Answer:

  • <em>It</em><em> </em><em>tells</em><em> </em><em>the</em><em> </em><em>speed</em><em> </em><em>of</em><em> </em><em>car</em><em>.</em><em> </em><em>At</em><em> </em><em>this</em><em> </em><em>time</em><em> </em><em>the</em><em> </em><em>speed</em><em> </em><em>of</em><em> </em><em>car</em><em> </em><em>is</em><em> </em><em>8</em><em>0</em><em>k</em><em>m</em><em>/</em><em>h</em><em> </em><em>,</em><em> </em><em>means</em><em> </em><em>if</em><em> </em><em>the</em><em> </em><em>car</em><em> </em><em>runs</em><em> </em><em>constantly</em><em> </em><em>at</em><em> </em><em>this</em><em> </em><em>speed</em><em> </em><em>then</em><em> </em><em>it</em><em> </em><em>will</em><em> </em><em>cover</em><em> </em><em>8</em><em>0</em><em> </em><em>kilometres</em><em> </em><em>in</em><em> </em><em>1</em><em> </em><em>hour</em><em>.</em><em> </em>

<em>.</em><em> </em>

<em>.</em><em> </em>

<em>.</em>

{\bold{\red{HOPE\:IT\:HELPS!}}}

\color{yellow}\boxed{\colorbox{black}{MARK\: BRAINLIEST!❤}}

4 0
2 years ago
The net force acting on an object equals the applied force plus the force of friction.
Georgia [21]

Answer:

False

Explanation:

The net force is equal to the applied force minus the force of friction. It is possible for friction to act in the same direction as an applied force, but that would mean there would have to be more than two forces acting on the object.

3 0
3 years ago
Other questions:
  • Explain why it is important that there is only one possible explanation for experimental data.
    14·1 answer
  • 1. Your new designer chair has an S-shaped tubular metal frame that behaves just like a spring. When your friend, who weighs 600
    14·1 answer
  • What is needed for work to be done?
    11·1 answer
  • Directions: WRITE a summary of the Newton’s Laws of Motion reading.
    9·1 answer
  • A ball having a weight of 1.5 N is dropped from a height of 4 meters. (Neglect air friction.) How much mechanical energy is "los
    8·2 answers
  • Macy and Sam are trying to push a large box across a floor. Both girls push with an equal amount of force. The total amount they
    5·1 answer
  • What is a major risk for heart disease that you cannot control A obesity b heredity c smoking d physical inactivity
    13·1 answer
  • How much time would it take a train locomotive running at 6000 Horsepower to use the
    9·1 answer
  • Explain what is the difference of physical and chemical weathering
    10·1 answer
  • What is the frequency of a wave with the speed of 550nm/s and wavelength of 15nm​
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!