Menu

[Solved]Telephone Number Word Generator Standard Telephone Keypads Contain Digits 0 9 Numbers 2 9 Q37272416

Telephone Number Word Generator Standard telephone keypads contain the digits 0 through 9. The numbers 2 through 9 each haveWrite a C++ program that will allow the user to choose to convert from a name HAIRCUT to the corresponding telephone number

Please do in C++ only use cin and cout

both pictures is one whole program.

Telephone Number Word Generator Standard telephone keypads contain the digits 0 through 9. The numbers 2 through 9 each have three letters associated with them, as indicated by the following table: Digit Letter ABC DEF GHI UKL MNO PQR TU V WXY Many people find it difficult to memorize phone numbers, so they use the correspondence between digits and letters to develop seven-letter words that cormespond to their phone numbers. For example, a person whose telephone number is 685-2377 might use the correspondence indicated in the above table to develop the seven-letter word “NUMBERS Businesses frequently attempt to get telephone numbers that are easy for the clients to remember. If a business can advertise a simple word for its customers to dial, then no doubt the business will receive a few more calls. Each seven-letter word corresponds to one-seven digit telephone number. The restaurant wishing to increase its take-home business could surely do so with the number 825-3688 (i.e. TAKEOUT). Each seven-digit phone number corresponds to many separate seven-letter words. Unfortunately, most of these represent unrecognizable juxtapositions of letters. It is possible, however, that the owner of a barber shop would be pleased to know tha the shop’s telephone number, 424-7288, corresponds to “HAIRCUT. A veterinarian with the phone number 738- 2273 would be pleased to know that the number corresponds to the letters “PETCARE Write a C++ program that will allow the user to choose to convert from a name “HAIRCUT” to the corresponding telephone number of that given a seven-digit number, will write out to a file called “output.txt” every possible seven-letter word corresponding to that number. There are 2187 (3 to the seventh power) such words. Avoid phone numbers with the digits 0 and 1 The program should have a menu with 3 options: 1, Convert from telephone name to number. 2. Print corresponding names for a telephone number. 3. Exit the program. Example 1. Convert from telephone name to number 2. Print corresponding names for a telephone number 3. Exit the programmer Enter selection: Enter telephone number: HAIRCUT 4247288 Enter selection: 2 4247288 Output will be a file that contains 2187 possible combinations of the number. Reminder Write pseudo code before you begin programming You are welcome to write your program at home. If you do, be sure to compile and test it in the lab before submitting it. Be sure and name your program properly or you will get a grade of 0 on the assignment. . . How to submit your program: Show transcribed image text Telephone Number Word Generator Standard telephone keypads contain the digits 0 through 9. The numbers 2 through 9 each have three letters associated with them, as indicated by the following table: Digit Letter ABC DEF GHI UKL MNO PQR TU V WXY Many people find it difficult to memorize phone numbers, so they use the correspondence between digits and letters to develop seven-letter words that cormespond to their phone numbers. For example, a person whose telephone number is 685-2377 might use the correspondence indicated in the above table to develop the seven-letter word “NUMBERS Businesses frequently attempt to get telephone numbers that are easy for the clients to remember. If a business can advertise a simple word for its customers to dial, then no doubt the business will receive a few more calls. Each seven-letter word corresponds to one-seven digit telephone number. The restaurant wishing to increase its take-home business could surely do so with the number 825-3688 (i.e. TAKEOUT). Each seven-digit phone number corresponds to many separate seven-letter words. Unfortunately, most of these represent unrecognizable juxtapositions of letters. It is possible, however, that the owner of a barber shop would be pleased to know tha the shop’s telephone number, 424-7288, corresponds to “HAIRCUT. A veterinarian with the phone number 738- 2273 would be pleased to know that the number corresponds to the letters “PETCARE
Write a C++ program that will allow the user to choose to convert from a name “HAIRCUT” to the corresponding telephone number of that given a seven-digit number, will write out to a file called “output.txt” every possible seven-letter word corresponding to that number. There are 2187 (3 to the seventh power) such words. Avoid phone numbers with the digits 0 and 1 The program should have a menu with 3 options: 1, Convert from telephone name to number. 2. Print corresponding names for a telephone number. 3. Exit the program. Example 1. Convert from telephone name to number 2. Print corresponding names for a telephone number 3. Exit the programmer Enter selection: Enter telephone number: HAIRCUT 4247288 Enter selection: 2 4247288 Output will be a file that contains 2187 possible combinations of the number. Reminder Write pseudo code before you begin programming You are welcome to write your program at home. If you do, be sure to compile and test it in the lab before submitting it. Be sure and name your program properly or you will get a grade of 0 on the assignment. . . How to submit your program:

Expert Answer


Answer to Telephone Number Word Generator Standard telephone keypads contain the digits 0 through 9. The numbers 2 through 9 each … . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *