C# How To Program: Telephone-Number Word Generator Part 3 of 3 – C# Jagged Array, Loops, Nested Loops, C# Advanced nested Loops

Share it with your friends Like

Thanks! Share it with your friends!

Close

C# How To Program: Telephone-Number Word Generator Part 3 of 3 – C# Jagged Array, Loops, Nested Loops, C# Advanced nested Loops

Each seven-letter word corresponds to exactly one seven-digit telephone number. The restaurant wishing to increase its take-home business could surely do so with the number 825-3688 (i.e., “TAKEOUT”).
Each seven-digit phone number corresponds to many separate seven-letter words. Unfortunately, most of these represent unrecognizable juxtapositions of letters. It’s possible, however, that the owner of a barber shop would be pleased to know that the shop’s telephone number, 424-7288, corresponds to “HAIRCUT.” The owner of a liquor store would, no doubt, be delighted to find that the store’s telephone number, 233-7226, corresponds to “BEERCAN.” A veterinarian with the phone number 738-2273 would be pleased to know that the number corresponds to the letters
“PETCARE.”
Write a C# program that, given a seven-digit number, writes to a file every possible seven-letter word corresponding to that number. Avoid phone numbers with the digits 0 and 1.

DOWNLOAD SOURCE FILES: phonenumber

Comments

Write a comment

*