Determine the actual number of burns required for your


Question: Galileo was an unmanned NASA spacecraft which studied the planet Jupiter and its moons, as well as several other solar system bodies. It was launched on October 18, 1989, and arrived at Jupiter on December 7, 1995, becoming the first spacecraft to orbit Jupiter. . For this programming assignment , you will determine the number of burns required for the Galileo to reach any destination, most importantly Jupiter. Each burn sequence allows the spacecraft to travel 60% of the remaining distance to the final destination. 

For example, if the initial distance is 5000 meters, the spacecraft would travel (5000*0.6), or 3000 meters, on the first burn with 2000 meters left to travel. On the second burn, the spacecraft would travel (3000*0.6), or 1800 meters, with 200 meters left to travel. Write a Java application that prompts for the distance to be traveled in kilometers (you will need to convert this to meters). Then, determine the number of burns required to reach the destination within 35 meters. Output the burn number, how far the probe traveled for the burn, and the remaining distance to reach its destination. You must use a While loop in your script.

Now determine the actual number of burns required for your spacecraft to travel from Earth to Jupiter. Include the answer as a comment in your code. Note that the average distance from Earth to Jupiter is 778412028 million km.

Things:

Note 1:  The Burn and distance traveled and the "meters to go" should appear on two lines as shown in the sample output. Note that this print should be done within the while loop.

Note 2: "meters to go" on the second line of the burn information should be lined up with "Traveled x meters" as shown in the Sample Output. To do this, you should use the tab escape sequence, \t

Note 3: For the distances, use a DecimalFormat object that prints only to three decimal places.

Solve these questions in details and provide examples to support your rationale.

Request for Solution File

Ask an Expert for Answer!!
Other Subject: Determine the actual number of burns required for your
Reference No:- TGS0946992

Expected delivery within 24 Hours