The burn and distance traveled

Assignment Help JAVA Programming
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.

Reference no: EM13167987

Questions Cloud

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.

Reviews

Write a Review

JAVA Programming Questions & Answers

  A mini game made in java using zen graphics

a mini game made in Java using Zen graphics .

  How does a client send a string ti the server using udp

How does a client send a string ti the server using UDP? Show what the client would do to get data from some string, and create a datagram packet destined for a server at "www.google.com", port 12345.

  Create javascript program to find gross pay for employees

Create JavaScript program which will find out the gross pay for each of three employees. Company pays "straight time" for first 40 hours worked by each employee and pays "time and a half".

  Write an interface for an abstract method

Write an interface, PointingDevice, containing:  an abstract method, getXCoord that returns an int and an abstract method, getYCoord that returns an int.

  Presell a limited number of cinema tickets

Write an application to presell a limited number of cinema tickets. each buyer can buy as many as 4 tickets. No more than 100 tickets can be sold. Implement a program called TicketSeller that prompts the user for the desired number of tickets and the..

  Java application to declare and create a vector

Write a java application that perform the following task: declare and create a vector with initial size of 10, increment of 2

  Please write the code in java

Please write the code in java for  Recursion,  Sorting and Searching

  Allows the user to enter a temperature and whether

Write a program that allows the user to enter a temperature and whether the temperature is stated in Celsius or Fahrenheit...or whethe

  Populate a one-dimensional array

Populate a one-dimensional array with the following grades in this order: 93, 61, 72, 45, 84, 51, 70, 83, 96, and 66. Use a loop to call a method from main() that adds

  Design a java program that simulates a slot machine

Design a java program that simulates a slot machine. When the program runs, it should do the following: Ask the user to enter the amount of money he or she wants to insert into the slot machine. ? Instead of displaying images, the program will random..

  Explain java-oriented microprocessors presented by sun

Research the latest Java-oriented microprocessors presented by Sun. In what ways are they optimized to implement Java programs?

  Write an interface for a bagadt that implements iterable

Write an interface for a BagADT that implements the Iterable interface. Include javadoc comments that will generate specifications for the BagADT so that someone who wants to implement this interface will know what each method does.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd