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
A hurricanes energy comes from?
Shalnov [3]

Answer:

a or b

Explanation:

6 0
2 years ago
Read 2 more answers
Two Earth satellites, A and B, each of mass m, are to be launched into circular orbits about Earth’s center. Satellite A is to o
Vera_Pavlovna [14]

Answer:

Explanation:

Orbital radius of satellite A , Ra = 6370 + 6370 = 12740 km

Orbital radius of satellite B , Rb = 6370 + 19110 = 25480 km

Orbital potential energy of a satellite = - GMm / r where G is gravitational constant , M is mass of the earth and m is mass of the satellite

Orbital potential energy of a satellite A = - GMm / Ra

Orbital potential energy of a satellite B = - GMm / Rb

PE of satellite B /PE of satellite A

=  Ra / Rb

= 12740 / 25480

= 1 / 2

b ) Kinetic energy of a satellite is half the potential energy with positive value , so ratio of their kinetic energy will also be same

KE of satellite B /KE of satellite A

= 1 / 2

c ) Total energy will be as follows

Total energy = - PE + KE

- P E + PE/2

= - PE /2

Total energy of satellite B / Total energy of A

= 1 / 2

Satellite B will have greater total energy because its negative value is less.

5 0
2 years ago
Which of the following has potential but not kinetic energy?
gavmur [86]

The answer would be option D "a ball sitting on a shelf." Potential energy is the amount of energy a object has while it's at rest.. (or not moving) Kinetic energy is how much energy a object is while it's moving. So in this case it's option D because a ball sitting on a shelf isn't moving therefore it has potential energy. It's not option A because thats a example of kinetic energy since how the roller coaster is moving. It's not option B because it's kinetic energy because the bike is moving. It's also not option C because it's kinetic energy because the bird is moving.


Hope this helps!

7 0
3 years ago
Question 3 of 15
omeli [17]

Answer:

B) Degrees

Explanation:

The directions of the vectors are often defined in terms of due East, due North, due West and due South. A direction exactly in between of North and East can be described as Northeast, similarly we can describe directions in terms of Northwest, Southeast and South west.

From these, the direction of a vector can be easily expressed in degrees, which is measured counter clockwise about its tail from due East. Considering that we can say that East is at 0° , North is at 90° , West is at 180 and South is at 270° counter clockwise rotation from due East.

So, we know that the direction of a vector lying somewhere between due East i.e 0° and due North i.e 90°, will be measured in degrees, which will have a value between 0°-90°

4 0
2 years ago
Catalytic ozone destruction occurs in the stratosphere by a two-step reaction:
Sladkaya [172]
Catalytic ozone destruction occurs in the stratosphere where the reactions involving bromine, chlorine, hydrogen, nitrogen and oxygen gases form compounds that destroy the ozone layer. The reactions uses a catalyst (speeds up the reaction) in a two step reaction. considering chlorine the reactions appears as follows;
step 1
 Cl + O3 = ClO + O2 
 step 2
ClO + O = Cl + O2 
Where by chlorine is released to destroy the ozone layer, this takes place many times even with the other elements (hydrogen, bromine, nitrogen) and the end result is a completely destroyed Ozone layer
7 0
2 years ago
Other questions:
  • In 1864, Louis Pasteur was asked to investigate diseases afflicting the wine in Arbois, France. He discovered that these disease
    9·1 answer
  • Does a brick have thermal energy? Also does paper haven't thermal energy?
    5·1 answer
  • What will a spring scale read for the weight of a 58.0-kg woman in an elevator that moves (a) upward with constant speed 5.0 m/s
    12·2 answers
  • A robotic arm lifts a stack of cafeteria trays weighing 62 newtons (N). It moves the trays 2 meters (m). How much work has the r
    8·1 answer
  • when objects like the horseshoe are lefty outside over time the iron in them will react with oxygen to produce rust. is this a c
    13·1 answer
  • 30 POINTS PLZ HELP!!!
    9·2 answers
  • Helppppppp mee........​
    8·1 answer
  • What is the appropriate age of the earth based on current scientific theory
    10·2 answers
  • a car moving at 30.0 m/s slows uniformly to a speed of 10.0 m/s in a time of 5.00 s determine the. acceleration of the car
    7·1 answer
  • Confirm that the force field F is conservative in some open connected region containing the points P and Q, and then find the wo
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!