Question: Write a program that translates an alphabetic phone number into numeric form: Enter phone number: CALLATT 2255288 (Here are the letters on the keys: 2=ABC,
Write a program that translates an alphabetic phone number into numeric form: Enter phone number: CALLATT 2255288 (Here are the letters on the keys: 2=ABC, 3=DEF, 4=GHI, 5=JKL, 6=MNO, 7=PQRS, 8=TUV, 9=WXYZ) If the original phone number contains nonalphabetic characters (digits or punctuation, for example), leave them unchanged: Enter phone number: 1-800-COL-LECT 1-800-265-5328 You may assume that any letters entered by the user are upper case.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
