Question: Write a method that returns a number, given an uppercase letter, as follows: int getNumber(char uppercaseLetter) Program 3_ Design and implement a Java program for

Write a method that returns a number, given an uppercase letter, asfollows: int getNumber(char uppercaseLetter) Program 3_ Design and implement a Java programWrite a method that returns a number, given an uppercase letter, as follows:

int getNumber(char uppercaseLetter)

Program 3_ Design and implement a Java program for programming exercise 6.21, page 239 (name it PhoneKeypad), which given a phone number that includes (or consists entirely of) letters displays the phone number as all numbers. Sample output is shown in the textbook. Follow the instructions in the problem statement. Design the test program main method to handle all input and output and to allow the user to re-run the program with different inputs (i.e., use a loop structure). Document your code and follow the model outputs in the textbook. (Note: Various formal and informal national and international formats for displaying telephone numbers include a plus sign for indicating the presence of a country code, spaces, parentheses, dashes, periods, etc. and the length of the telephone number can vary widely. The program must be able to process phone numbers of any length with any character which can be entered using a standard keyboard - if the entered number contains a character that is neither a letter nor a digit, treat it is a legitimate phone number display character.)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To solve this problem we need to map letters to numbers based on a typical phone keypad layout 2 ABC ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!