Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

phone_list.txt :

image text in transcribed

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 number

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

AutoCAD Database Connectivity

Authors: Scott McFarlane

1st Edition

0766816400, 978-0766816404

More Books

Students also viewed these Databases questions

Question

What is focal length? Explain with a diagram and give an example.

Answered: 1 week ago