Question: The international standard letter/number mapping found on the telephone is shown below: Write a program that prompts the user to enter a letter and displays

The international standard letter/number mapping found on the telephone is shown below:

2 abc 3 def 5 ik 6 mmo 4 ghi 7pars 9wxya

Write a program that prompts the user to enter a letter and displays its corresponding number.

8 tuv Enter a letter: A JEnter The corresponding number is 2

2 abc 3 def 5 ik 6 mmo 4 ghi 7pars 9wxya 8 tuv Enter a letter: A JEnter The corresponding number is 2 Enter a letter: a Enter The corresponding number is 2 Enter a letter: + JEnter + is an invalid input

Step by Step Solution

3.42 Rating (161 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Program Plan Create a class called PhoneKeypad Initialize the main method with variable s as string c as char n as integer Create a Scanner class to r... 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 Java Programming Questions!