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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 01:40, littlebirdd987
You have a linux system that has a 1000gb hard disk drive, which has a 90gb partition containing an ext4 filesystem mounted to the / directory and a 4gb swap partition. currently, this linux system is only used by a few users for storing small files; however, the department manager wants to upgrade this system and use it to run a database application that will be used by 100 users. the database application and the associated data will take up over 200gb of hard disk space. in addition, these 100 users will store their personal files on the hard disk of the system. each user must have a maximum of 5gb of storage space. the department manager has made it very clear that this system must not exhibit any downtime as a result of hard disk errors. how much hard disk space will you require, and what partitions would you need to ensure that the system will perform as needed? where would these partitions be mounted? what quotas would you implement? what commands would you need to run and what entries to /etc/fstab would you need to create? justify your answers.
Answers: 3
image
Computers and Technology, 24.06.2019 12:00, tipbri6380
An npn transistor is correctly biased and turned on if the a. base is negative. b. collector is negative. c. collector is positive with respect to the emitter and negative with respect to the base. d. collector is the most positive lead followed by the base.
Answers: 1
image
Computers and Technology, 24.06.2019 18:30, gucc4836
In what way is your social media footprint related to your digital id
Answers: 1
image
Computers and Technology, 25.06.2019 05:00, nathan123498
Arun is 5 years older than anu. five years ago, the ratio of their ages was 3: 2 . find their present age
Answers: 2
You know the right answer?
(telephone-number word generator) standard telephone keypads contain the digits zero through nine. t...

Questions in other subjects: