Command line arguments in crossword

Assignment Help Basic Computer Science
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

Reference no: EM13829454

Questions Cloud

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

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd