Question: Write a java program for the following problem. 2. Write a program named Program2 that translates a telephone number from a letter format to a
Write a java program for the following problem.

2. Write a program named Program2 that translates a telephone number from a letter format to a number format using the following translation table: 1 2 3 ABC DEF 4 GHI 5 JKL 6 MNO 7 8 9 PQRS TUV WXYZ 0 # Your program uses JOptionPane to prompt the user for a telephone number, and to display the phone number in numeric form. Note Letters of the alphabet represent digits. Any character that is not a letter of the alphabet is left as is. The digits 'O' and '1' are left as is The character'' is left as is The letter 'l'translates to the digit 'O' The letter 'O' translates to the digit '6' . Program response Message Example of user interaction: Program prompt & user input Input ? Enter a phone number: AOGOVO.PT11 Cancel 204.786.7811 OK OK
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
