standard telephone keypads contain the digits zero through nine.
standard telephone keypads contain the digits zero through nine. the numbers two through nine each have three letters associated with them (fig. 17.25). 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. 17.25 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 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, given a seven-digit number, uses a printstream object to write to a file every possible seven-letter word combination corresponding to that number. there are 2,187 (37) such combinations. avoid phone numbers with the digits 0 and 1.
Price Type: Negotiable
Total Proposals: 3
1 Current viewersl
87 Total views