Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please help with this question phone_list.txt : Standard telephone keypads contain the digits 0 through 9. The numbers 2 through 9 each have three letters
Please help with this question
phone_list.txt :
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 Digit Letter Digit Letter 2 ABC 6 MINTO DER D7 BPRS 4 GHI 8 TUV Write a program that translate seven-letter words in a file to their corresponding phone numbers 1. Name your program phone numbers. C 2. 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 3. 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 numberStep 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