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

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

100 2abc 3 def 4 ghi 5 ikl 6mno 7pgrs 8 tuv

Write a program that prompts the user to enter a lowercase or uppercase letter and displays its corresponding number. For a nonletter input, display invalid input.
Enter a letter: A
The corresponding number is 2
Enter a letter: a
The corresponding number is 2
Enter a letter: +
+ is an invalid input

100 2abc 3 def 4 ghi 5 ikl 6mno 7pgrs 8 tuv 9wxy **

Step by Step Solution

3.39 Rating (165 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

import javautilScanner public class Exercise0415 public static void mainStri... 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 Introduction to Java Programming and Data Structure Questions!