Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In java please! Will rate. Please post a screenshot of the output. Thanks! Standard telephone keypads contain the digits zero through nine. The numbers two

In java please! Will rate. Please post a screenshot of the output. Thanks! Standard telephone keypads contain the digits zero through nine. The numbers two through nine each have three letters associated with them (See figure below). 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 6862377 might use the correspondence indicated in the figure below 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 8253688 (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. Its possible, however, that the owner of a barbershop would be pleased to know that the shops telephone number, 4247288, corresponds to HAIRCUT. A veterinarian with the phone number 7382273 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, 6392277, corresponds to NEWCARS.

Write a program that, given a seven-digit number, uses a PrintStream object to write to a file every possible seven-letter word combination corresponding to that number. There are 2,187 such combinations. Avoid phone numbers with the digits 0 and 1. image text in transcribed Note: Please attach your output.txt file (with all seven-letter word combinations) together at the bottom.

Digit Letters Digit Letters Digit Letters A B C DEF GHI K L TUV MNOS PRS

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

Step: 3

blur-text-image

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2015 Porto Portugal September 7 11 2015 Proceedings Part 1 Lnai 9284

Authors: Annalisa Appice ,Pedro Pereira Rodrigues ,Vitor Santos Costa ,Carlos Soares ,Joao Gama ,Alipio Jorge

1st Edition

3319235273, 978-3319235271

More Books

Students also viewed these Databases questions

Question

3. Would you say that effective teamwork saved their lives?

Answered: 1 week ago