MUST BE IN JAVASCRIPT
The goal of this assignment is to use functions. Try to containas much of your code as possible inside of functions that are wellnamed and can be reused. At a minimum your code must use fourfunctions.
You are to create a program that aids an astronaut traveling tothe planets (and moons) of our solar system. The planetary bodiesin question are
- MERCURY
- VENUS
- EARTH
- MOON
- MARS
- JUPITER
- SATURN
- URANUS
- NEPTUNE
- PLUTO
The relative gravity on these planets (relative to earth) is asfollows:
MERCURYVENUSEARTHMOONMARSJUPITERSATURNURANUSNEPTUNEPLUTO0.3780.90710.1660.3772.360.9160.8891.120.071
This means that if you weight 175 pounds (79.379 Kg) on Earthand you traveled to Jupiter, you would weigh 175 * 2.36 = 413pounds or 79.379 * 2.36 =
PayPal Gateway not configured
PayPal Gateway not configured