Answered step by step
Verified Expert Solution
Question
1 Approved Answer
PLEASE READ #3!!!! Standard telephone keypads contain the digits 0 through 9 the numbers 2 through 9 each have three letters associated with them, as
PLEASE READ #3!!!!
Standard telephone keypads contain the digits 0 through 9 the numbers 2 through 9 each have three letters associated with them, as is indicated by the following table Write a program that translate seven-letter words in a file to their corresponding phone numbers. Name your program phone_number. c the program reads the content of the file and translate the seven-letter words into their corresponding phone numbers, then writes the phone numbers to a file with the same name but an added extension of. cvt. For example, if the original file name is phone_list. txt, then the corresponding phone numbers will be stored in a file named phone_list. txt. cvt. Assume the file name is no more than 100 characters. Enter the file name: phone_list.txt Output file name: phone_list.txt.cvt the program should include the following function: void translate (char *word, char *phone_number); the function expects word to point to a string containing the seven-letter words to be translated; phone_number represents the pointer pointing to the string storing the phone number For example, if the word is TAKEOUT, the function will store 8253688 pointed by phone_number
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started