subject

(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 fig. 1 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 the correspondence indicated in fig. 1 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 to know that the shop’s telephone number, 424-7288, corresponds to "haircut." a veterinarian with the phone number 738-2273 would be to know that the number corresponds to the letters "petcare." an automotive dealership would be to know that the dealership number, 639-2277, corresponds to "newcars."2a b c5j k l8t u v3d e f6m n o9w x y4g h i7p r sfig. 1 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)(37) such combinations. avoid phone numbers with the digits 0 and 1.use the phonetest. java to test your program.// exercise 15.7 solution: phonetest. java// testing the phone class. import java. util. scanner; import java. util. nosuchelementexception; public class phonetest {public static void main(string[] args) {scanner scanner = new scanner(system. in); phone application = new phone(); system. out. print("enter phone number (digits greater than 1 only): "); try {application. calculate(scanner.; }catch (nosuchelementexception elementexception) {system. err. println("error inputting data."); }}}

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 17:20
The thickness of a part is to have an upper specification of 0.925 and a lower specification of 0.870 mm. the average of the process is currently 0.917 with a standard deviation of 0.005. determine the percentage of product above 0.93 mm.
Answers: 3
question
Computers and Technology, 22.06.2019 08:00
Digital information is stored using a series of ones and zeros. computers are digital machines because they can only read information as on or off –1 or 0. this method of computation is known as the system
Answers: 1
question
Computers and Technology, 22.06.2019 15:00
Who is the first president to use social media as part of his campaign strategy
Answers: 1
question
Computers and Technology, 22.06.2019 15:00
Which of the following has not been attributed at least in part to social media a. drug addiction b. depression c. kidnapping d. murder
Answers: 2
You know the right answer?
(telephone-number word generator) standard telephone keypads contain the digits zero through nine. t...
Questions
question
English, 11.04.2022 21:40
question
Mathematics, 11.04.2022 21:50
Questions on the website: 13722361