Reference no: EM13829454
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
The financial services modernization act
: The Financial Services Modernization Act of 1999 (Gramm-Leach-Bliley Act) basically repealed the Glass-Steagall Act of 1933. Do you believe the passage of this Act was beneficial for the banking industry, or will it be a detriment to the industry in ..
|
Biometrics in banking security
: Biometrics in Banking Security
|
What was the annual increase in selling price
: In January 2007, the average price of an asset was $28,658. 7 years earlier, the average price was $20,808. What was the annual increase in selling price? In percentage form
|
What is the bonds expected rate of return
: The market price is $900 for a 10-year bond that pays 8% interest semi annually. What is the bond's expected rate of return? If the required rate of return is 11%, is this bond overpriced, fairly priced, or underpriced?
|
Command line arguments in crossword
: In this question you will create a simple command line program which will help solve these problems.
|
Discusses about verbal and non-verbal communication
: The problem belongs to Sociology and it is discusses about verbal and non-verbal communication. The exercise is about watching a TV show, preferably a sitcom and understanding the situation through non-verbal communication.
|
Research and identify the main contractual responsibilities
: Research and identify the main contractual responsibilities to be included when writing up a contract
|
About the before-tax analysis
: Fairmont Industries primarily relies on 100% equity financing to fund projects. A good opportunity is available that will require $250,000 in capital. The Fairmont owner can supply the money from personal investments that currently earn an average of..
|
Pestle analysis of a new uk based business plan
: PESTLE Analysis of a new UK based business plan
|