Write a C++ program which takes a 4-digit number as input from the user and prints the number in reverse order. For example, if the number entered is 5678 then the output should be 8765. The program should repeat this until the user decides to quit.
It is due 9:30 am on Thursday, 9/5/02
You need to pay attention to the following
1. Provide appropriate comments in your code
2. Use meaningful identifiers
3. Your program should give a warning message if the number is not a 4-digit number.
4. Your program should not be case-sensitive for the user choice i.e. both Q and q are should be acceptable quit.
Here is a typical dialogue for this program:
Enter a 4-digit number
134
This is not a 4-digit number: Enter a 4-digit number
1234
The reverse number is 4321
Enter Q to quit, enter any letter to continue
C
Enter a 4-digit number
9001
The reverse number is 1009
Enter Q to quit, enter any letter to continue
Q
Bye !...