Reference no: EM13167987
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 to 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.
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
3. For the distances, use a DecimalFormat object that prints only to three decimal places.
Explain how much oxalate unknown should weigh out
: If a student weighs out .500g of oxalate unknown and it takes 20.6 mL of permanganate solution to titrate it, how much oxalate unknown should the student weigh out
|
Unctions for doing sort, search, display, replace, delete
: create functions for doing sort, search, display, replace, delete, and add. You can use dynamic memory allocation for enlarge the size of pointer array for adding a new country.
|
Define thermodynamic properties of urea
: Explain the purpose of the "Thermodynamic properties of Urea " Experiment. Also , ca you please tell me any possible sources of error
|
Why are active on-duty firefighters likely to experience
: Why are active on-duty firefighters likely to experience the adverse health effects from inhaling 300 ppm of carbon monoxide faster than nonactive off-duty firefighters who inhale the same concentration of the same substance?
|
The burn and distance traveled
: 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.
|
Concludes of an equilibrium constant
: If the absorbance of one of your samples is off scale, what is the most likely problem?
|
Create a function that returns true i
: Create a function that returns true if the input is a numeric matrix and false otherwise.
|
String as its parameter and returns the length
: Write a method named longestWord that accepts a String as its parameter and returns the length of the longest word in the string.A word is a sequence of one or more non-space characters (any character other than the space character).
|
Explain coil and a magnetic field that both were in motion
: Tell me if an induced current would exist, if you had a coil and a magnetic field that both were in motion at the same time.
|