Write a value-returning function that converts the name of a planet given as a string parameter to a value of the enumeration type declared in Exercise 1. If the string isn’t a proper planet name, return "EARTH".
REF PRB:
Declare an enumeration type consisting of the nine planets in their order by distance from the Sun (Mercury first, Pluto last).
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.