Computers and Technology

(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."); }}}

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 18:00, deathfire5866
Determine whether the following careers would require training or college.
Answers: 1
image
Computers and Technology, 24.06.2019 03:30, mprjug6
Which explains extrinsic motivation? a)motivation in which there is a reward b)motivation that is personally satisfying c)motivation that is personally meaningful d)motivation in which the subject is interesting
Answers: 1
image
Computers and Technology, 24.06.2019 08:30, 5theth
Intellectual property rights are exclusive rights that protect both the created and the creation. ipr offers exclusively what benefits to the person or people covered by it
Answers: 3
image
Computers and Technology, 24.06.2019 21:50, TamB01
Maddie is traveling to india and would like to document her trip for friends and family to access online. what tool would be best? app blog listserver web page
Answers: 1
Do you know the correct answer?
(telephone-number word generator) standard telephone keypads contain the digits zero through nine. t...

Questions in other subjects:

Konu
Computers and Technology, 13.02.2020 21:00