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, 24.06.2019 17:00
What are some examples of what can be changed through options available in the font dialog box? check all that apply. font family italicizing bolding pasting drop shadow cutting character spacing special symbols
Answers: 2
question
Computers and Technology, 25.06.2019 06:30
How can u permanently delete a picture from your camera ?
Answers: 1
question
Computers and Technology, 26.06.2019 01:00
Which feature was the first app available on a cell phone? a. game b.contact list c.email d.ringtone
Answers: 1
question
Computers and Technology, 26.06.2019 13:30
Which are the correct explanations of the different internet access methods?
Answers: 1
You know the right answer?
(telephone-number word generator) standard telephone keypads contain the digits zero through nine. t...
Questions
question
History, 21.10.2020 05:01
question
History, 21.10.2020 05:01
question
English, 21.10.2020 05:01
question
Mathematics, 21.10.2020 05:01
Questions on the website: 13722360