Originally Posted by Philip M
It is for more user-friendly to test for the first letter of the reposnse "s" or "p" (case insensitive) rather than reject the input, display an error message, and require the answer to be entered again.
I thought that too, but my professor specifically wanted an error message. Probably to teach us error handling.
The code that shya did works for the first switch, but not the second. If I put in "Stars", or "S", and then a number, the correct answer comes up.
If I put "Planets" or "P", then a number, however, nothing comes up. I can't figure out why.