Question: Write a program that translates an alphabetic phone number into numeric form: Enter phone number: CALLATT 2255288 (In case you don't have a telephone

Write a program that translates an alphabetic phone number into numeric form: 

Write a program that translates an alphabetic phone number into numeric form: Enter phone number: CALLATT 2255288 (In case you don't have a telephone nearby, here are the letters on the keys: 2:ABC. 3:DEF. 4:GHI. 5:JKL, 6:MNO. 7:PRS. 8:TUV. 9:WXY) If the original phone number contains non-alphabetic 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 is upper case. (use getchar() for reading the entries. Please note, as an example, you can use putchar('1') to write 1 or putchar(ch) to write the character stored in ch)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Heres a simple C program that translates an alphabetic ... 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

Document Format (2 attachments)

PDF file Icon

663e6b8554f73_956587.pdf

180 KBs PDF File

Word file Icon

663e6b8554f73_956587.docx

120 KBs Word File

Students Have Also Explored These Related Programming Questions!