Problem:
In this question you will create a simple command line program which will help solve these problems.
STARTING THE PROGRAM
Your program must use command line arguments. Assuming your program has been compiled to Crossword.exe you would run with the following command line arguments.
Crossword [A|P] dictionary letters
[A|P]
This says we must either supply the letter A or the letter P as part of the command line arguments.
A We are looking for words in the dictionary that are an anagram of the letters supplied.
P We are looking for words in the dictionary that match the pattern of letters supplied.
Dictionary
In order to solve the problem you will need a dictionary of words to check your letters against, looking for possible matches. The dictionary will have one word per line of file. As part of the assignment I will supply a dictionary file called dict.txt, which contains about 64000 words to test against. It can be assumed that the dictionary only contains alphabetical letters. It contains no spaces, digits or punctuation characters.
Letters
Letters can be in two forms
1. A set of alphabetical letters. It contains no spaces, digits or other punctuation characters. The letters can be any case. This will be used with the A argument. Your program will find all words in the dictionary that are an anagram of the letters.
2. A set of alphabetical letters and underscores. It contains no spaces, digits or other punctuation characters. The letters can be any case. This will be used with the P argument. Your program will find all words in the dictionary that match the pattern of letters.
OUTPUT
The program will output all the words it finds matching the pattern/anagram plus a count of the words found.
Additional Information:
This question is from Computer Science and it explains about writing program in .NET which is about using command line arguments in crossword (A | P) dictionary letters.
Total Word Limit: 306 Words