402 Placement Activies, Tri1 2014-15

Successful completion of this project will allow you to register for CS 404. If you have passed the AP exam with a score of 4 or 5, you may also register for CSC404.

Write two Python 3 program that do the following.

In UNIX the user will write

$ python crosswordCheat a--rr--e
User, specifiy a dictionary file:  (user specified dictionary file)
(the program then opens the dictionary file and spits out the matches.)

This program will walk through the dictionary and list all words in the dictionary file fitting this pattern. A dash ("-") stands for one character.

The second program called makeDictionaryFile.py will take the name of a text file as a command line arguemnt. It will then make a sorted dictionary file (alphabetically) of all distinct words in lower-case. Each line should contain one word. Usage will be as follows.

$ python makeDictionaryFile warrenPiece.txt

This will create a file called warrenPiece.txt.dict which will be a dictionary for the text document warrenPiece.txt.

Put a comment block at the top of both programs tellling how to run them.