Problem 2 - Telephone Number Word Generator Standard telephone keypads contain the digits zero through nine. The numbers

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Problem 2 - Telephone Number Word Generator Standard telephone keypads contain the digits zero through nine. The numbers

Post by answerhappygod »

Problem 2 Telephone Number Word Generator Standard Telephone Keypads Contain The Digits Zero Through Nine The Numbers 1
Problem 2 Telephone Number Word Generator Standard Telephone Keypads Contain The Digits Zero Through Nine The Numbers 1 (93.64 KiB) Viewed 32 times
In JAVA and please use a formatter writing to a file. Also,notice the Q and Z are not used. Thank you!
Problem 2 - Telephone Number Word Generator Standard telephone keypads contain the digits zero through nine. The numbers two through nine each have three letters associated with them in the following figure. Many people find it difficult to memorize phone numbers, so they use the correspondence between digits and letters to develop seven-letter words that correspond to their phone numbers. For example, a person whose telephone number is 686-2377 might use the correspondence indicated in the following figure to develop the seven-letter word "NUMBERS." Every seven-letter word corresponds to exactly one seven-digit telephone number. A restaurant wishing to increase its takeout business could surely do so with the number 825-3688 (i.e., "TAKEOUT"). Every seven-letter phone number corresponds to many different seven-letter words, but most of these words represent unrecognizable juxtapositions of letters. It's possible, however, that the owner of a barbershop would be pleased to know that 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." An automotive dealership would be pleased to know that the dealership number, 639- 2277, corresponds to "NEWCARS." Digit 2 3 4 Letters A B C DEF GHI Digit 5 LO 7 Letters J K L MNO PRS Digit 8 9 Letters TUV Telephone keypad digits and letters. Write a program that, given a seven-digit number, uses a Formatter object to write to a file every possible seven-letter word combination corresponding to that number. There are 2,187 (37) such combinations. Avoid phone numbers with the digits 0 and 1.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply