hey guys need help...
Declare an enumeration type consisting of the nine planets in their order by distance from the Sun (Mercury first, Pluto last).
Write a value-returning function that converts the name of a planet of the enumeration type declared in Step 1 into the corresponding string. The planet is an input parameter and the string is returned by the function. If the input is not a valid planet, return “Error”.
Write the main function with a For statement that prints out the names of the planets in order, using the enumeration type declared in Step 1 and the function declared in Step 2.