Question: How do I Design and write Java application that takes as input a single letter and displays the corresponding digit on the telephone. The letters
How do I Design and write Java application that takes as input a single letter and displays the corresponding digit on the telephone. The letters and digits on a telephone are grouped this way:
2 = ABC4 = GHI 6 = MNO 8 = TUV
3 = DEF5 = JKL7 = PRS9 = WXY
No digit corresponds to either Q or Z.For the two letters, my application should display a message indication that they are not used on a telephone.
The screen dialog might look like this:
Enter a single letter, and I will tell you what the corresponding digit is on the telephone.
R
The digit 7 corresponds to the letter R on the telephone.
my code should display a message indication that there is no matching digit for any nonalphabetic character entered by the user. Also, the application should recognize upper- or lower-case letters.
I need to use proper indentation, appropriate comments, and meaningful identifiers throughout the code.
i need Ask the user to run again.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
