Many companies use telephone numbers like 555-GET-FOOD so the number is easier for their customers to remember. On a standard telephone, the alphabetic letters are mapped to numbers in the following...


Many companies use telephone numbers like 555-GET-FOOD so the number is easier for their customers to remember. On a standard telephone, the alphabetic letters are mapped to numbers in the following way:


A, B, and C = 2


D, E, and F = 3


G, H, and I = 4


J, K, and L = 5


M, N, and O = 6


P, Q, R, and S = 7


T, U and V = 8


W, X, Y, Z = 9


Write a program that asks the user to enter a telephone number. The program should display the telephone number with all alphabetic characters that appeared in the original translated to their numeric equivalent. Do not translate characters other than letters.


Ex: If the input is:


555-GET-food


the output is:


555-438-3663


Python



Jun 03, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here