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:

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

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
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
Get step-by-step solutions from verified subject matter experts
