Categories
Java

Description: 6.21 (Phone keypads) The international standard letter/number mappi

Description:
6.21 (Phone keypads) The international standard letter/number mapping for telephones. Write a method that returns a number, given an uppercase letter. Must Use this method declaration:public static int getNumber(char uppercaseLetter)
Then, write a program that prompts the user to enter a phone number as a string. The input number may contain letters. The program translates a letter (uppercase or lowercase) to a digit and leaves all other characters intact. Use your getNumber() method to do the translations.
Sample Runs:
Enter a string (e.g. 1-800-Flowers):
1-800-Flowers
1-800-3569377
Enter a string (e.g. 1-800-Flowers):
1-800-TRYJAVA
1-800-8795282
Don’t forget this is java