create a planet class c include a h file cpp file and driver file the class should h 5192006

Create a Planet class(C++, include a .h file, cpp file, and driver file. The class should have functions to set and get the values of the following member variables: name (a string), distance (a float) – representing the planet's distance from the sun, and gravity (a float) – representing the planet's gravity in relation to the Earth's gravity. The driver file should declare an array of 7 Planet objects. A function in the driver should let the user input values for the different planets. Then, the driver should have a function to ask the user for a weight in pounds and the name of a planet. Another function should look for the planet in the array of Planets and return the weight the Earth weight would be on the other planet.

"Get 15% discount on your first 3 orders with us"
Use the following coupon
FIRST15

Order Now