Planets Classification

Planets Classification

Planets Classification Our solar system contains 8 primary planets and Pluto, which is a Dwarf Planet. These 8 primary planets are: Mercury, Venus, Earth, Mars, Jupiter, Saturn, Uranus and Neptune. Out of these 8, the first 4 are Terrestrial planets while the other 4 are Jovian planets. Among the Jovian planets, Jupiter and Saturn are gas giants while Uranus and Neptune are ice giants. Some of these planets have satellites and moons. For example, Mars has 2 moons called Phobos and Deimos. Write an algorithm using Python that: 1. Ask the user to manually input a planet in the solar system 2. Output {name} is a Terrestrial planet if the user chose Mercury, Venus, Earth or Mars 3. Output {name} is a Jovian planet if the user chose Jupiter, Saturn, Uranus or Neptune 4. Output {name} is a Dwarf planet if the user chose Pluto 5. Output {name} is also a gas giant if the user chose either Jupiter or Saturn 6. Output {name} is also an ice giant if the user chose either Uranus or Neptune 7. If the user chose Mars, output “Mars has 2 moons, Phobos and Deimos” 8. If the user chose Jupiter, output “Jupiter has 4 satellites, 46 moons and 17 provisional moons” 9. If the user chose Saturn, output “Saturn has 7 satellites, 46 moons, 3 Trojan moon groups and 9 provisional moons” 10. If the user chose Uranus, output “Uranus has 5 satellites and 23 moons” 11. If the user chose Pluto, output “Pluto has 1 satellite and 4 moons” 12. Make sure that the name of the planet in the output section is always capitalized An example of the output where the user has input ‘jupiter’ is: Jupiter is a Jovian planet Jupiter is a gas giant Jupiter has 4 satellites, 46 moons and 17 provisional moons Note that the user has input ‘jupiter’ but the output came out as ‘Jupiter’, which follows the rule given by #12. .

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    1 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us