C++ please and thank you. In this assignment you will identify the word and word combinations associated with telephone numbers by using the word list contained in a file with over 264,100 words. Each word ranges from 2- 12 letters. 1 You will extract from this file and store all the three and four-letter words. 2 You will accept, from user input, a phone number as a string. Then you will validate that the phone number is in the correct format and contains valid numbers. If the phone number is not valid, you should display the message "Invalid phone number" and exit. 3 Using the phone number, you will determine all the corresponding words and word combinations and write them into a file named "output.txt". Note: A phone number must be in the format ###-#### and contain only the digits [2-9] inclusive to be considered valid. The digits 1 and 0 are considered invalid because they are not associated with any letters. Example input: 223-5653 The output.txt file should contain: ACE-JOKE ACE-JOLE ACE-LOKE BAD-JOKE BAD-JOLE BAD-LOKE CAD-JOKE CAD-JOLE CAD-LOKE
C++ please and thank you.
In this assignment you will identify the word and word combinations associated with telephone numbers by using the word list contained in a file with over 264,100 words. Each word ranges from 2- 12 letters.
1 You will extract from this file and store all the three and four-letter words.
2 You will accept, from user input, a phone number as a string. Then you will validate that the phone number is in the correct format and contains valid numbers. If the phone number is not valid, you should display the message "Invalid phone number" and exit.
3 Using the phone number, you will determine all the corresponding words and word combinations and write them into a file named "output.txt".
Note: A phone number must be in the format ###-#### and contain only the digits [2-9] inclusive to be considered valid. The digits 1 and 0 are considered invalid because they are not associated with any letters.
Example input:
223-5653
The output.txt file should contain:
ACE-JOKE
ACE-JOLE
ACE-LOKE
BAD-JOKE
BAD-JOLE
BAD-LOKE
CAD-JOKE
CAD-JOLE
CAD-LOKE
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images