Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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

_________________________________________________________________________________________________________________________________

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote