Question: JAVA The Saturn rocket took American astronauts to the moon long ago. The first stage of the Saturn rocket, using five F1 rocket engines, produced

JAVA

The Saturn rocket took American astronauts to the moon long ago. The first stage of the Saturn rocket, using five F1 rocket engines, produced 7.5 million lbs. (3.4 million kilograms) of thrust and burned for about two minutes during the launch. (A pound of thrust is the force able to accelerate 1 pound of material 32 feet per second per second. So one pound of thrust is actually the force of gravity on the surface of the earth.)

While producing this massive amount of energy the engines used approximately 20 tons (40,000 pounds) of fuel per second.

1. Write a java class called Engine that contains a variable for pounds of fuel. In addition write 1 public method that accepts the amount of fuel as a parameter as well as the amount of time the rocket engine runs. The method should return the amount of fuel burned. Note: The method should behave appropriately if the fuel burn is larger than the amount of fuel available. Essentially, what is the maximum amount of fuel that could be burned.

2. Write one more Java class called Applications that contains a main method. It should instantiate your Engine class and call the method you wrote.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!