Using Java, write a program that uses a class to represents aspaceship. A spaceship has some amount of jets, landing gear,parachutes and astronauts. It must leave Earth’s gravity, so itmust use all its jets to propel itself off Earth. The spaceshipwill spend some time exploring before returning to Earth. When itreturns to Earth, it will use its parachute and landing gear toland safely. Make sure that those are extended before landing!
Sample output: Your spaceship has 5astronauts, 2 jets, stored landing gear and parachute.
The spaceship is taking off!
Your spaceship is exploring…
Your spaceship is heading back toEarth.
Oh
OR
OR