Write a program that will keep track of planets. Your program should make use of your planet class from the previous assignment and display a menu similar to this:

1. Add Planet
2. Delete Planet
3. Find Planet
4. List Planets
5. Sort Planets
6. Quit

Adding a planet will prompt the user for name, massand diameter and add the planet to the vector.

When deleting a planet, your program will prompt the user for the planets name, find the planet by name in the vector, then remove it.

When finding a planet, your program will prompt the user for the planet's name, find the planet by name and display the name, mass, diameter, surface area, density and acceleration due to gravity at the planet's surface.

When listing the planets, show the same information as above for all planets in the list.

Sorting the planets will be done via alphabetical order. (This does not need to be case sensitive). Note that if you use an insertion sort when adding planets, this option is not needed.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.