The international standard letter/number mapping found on the telephone is show
ID: 3634886 • Letter: T
Question
The international standard letter/number mapping found on the telephone is show below:1 2 3
ABC DEF
4 5 6
GHI JKL MNO
7 8 9
PQRS TUV WXYZ
0
Write a method that returns a number, given an uppercase letter, as follows:
public static int getNumber(char uppercaseLetter)
Write a test program that prompts the user to enter a phone number as a string. The input number may contain letters. The program translates a letter (upper- or lowercase) to a digit and leaves all other characters intact. Here is a sample run of the program:
Enter a string: 1-800-Flowers
1-800-3569377
or
Enter a string:1800Flowers
18003569377
Explanation / Answer
_________________________________________________________________________________________________________________________________
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.