Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use your own Java Code. O PREV NEXT ? 0 Exercise 72044- WORK AREA NOTE: This section allows a maximum of 5 attempts per exercise.

Use your own Java Code.image text in transcribed

O PREV NEXT ? 0 Exercise 72044- WORK AREA NOTE: This section allows a maximum of 5 attempts per exercise. While you can keep submitting solutions past that limit, they will NOT be counted! By default, we display your atest submission, regardless of whether or not it has been counted You have made 0 attempts with 5 attempts remaining Standard telephone keypads contain the digits zero through nine. The numbers two through nine each have three letters associated with them (as seen 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 686-2377 might use this tool to develop the seven-letter word NUMBERS." 2: A BC 3: DEF 4:GHI 5: J KL 6: MN0 7: PRS 8: TUV 9: W X Y 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." Write a program that prompts the user to enter a seven-digit telephone number as input and calculates all possible seven-letter word combinations. After sorting the result, print the first and last 10 combinations. SAMPLE RUN #1: java PhoneNumber Interactive Session Hide Invisibles Highlight: None Show Highlighted Only L Enter.phone number: 287-7486 0: ATPPGTM 1: ATPPGTN 2: ATPPGTO 3: ATPPGUM 4: ATPPGUN 5: ATPPGUO 6: ATPPGVM

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

PostgreSQL Up And Running A Practical Guide To The Advanced Open Source Database

Authors: Regina Obe, Leo Hsu

3rd Edition

1491963417, 978-1491963418

More Books

Students also viewed these Databases questions

Question

What is the most important part of any HCM Project Map and why?

Answered: 1 week ago