Question: Using the switch statement, write a program that takes a number keyed in from the terminal and extracts and displays each digit of the integer
Using the switch statement, write a program that takes a number keyed in from the terminal and extracts and displays each digit of the integer in English in reverse order. (Do not limit the number digits in the integer input!) If the user types 932, the program should display the numbers:
two three nine
Remember to display zero if the user types in just a 0. If the user enters anything other than a number, give an appropriate error message.
BONUS: If you can make #2 print in the order the digits were entered using ONLY techniques taught so far, you will receive an additional 3 points. For example: 932 would display as:
nine three two
Has to be in
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
