Answered step by step
Verified Expert Solution
Link Copied!

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!!!!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 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

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

Databases In Networked Information Systems 6th International Workshop Dnis 2010 Aizu Wakamatsu Japan March 2010 Proceedings Lncs 5999

Authors: Shinji Kikuchi ,Shelly Sachdeva ,Subhash Bhalla

2010th Edition

3642120377, 978-3642120374

More Books

Students also viewed these Databases questions

Question

=+ What is the role of government in bargaining?

Answered: 1 week ago

Question

=+ Who is the negotiation partner at company level?

Answered: 1 week ago