This is the actual assignment I was given:
TEXT Assignment
It was supposed to be written in Java, so I divided it in 2 parts:
The main program:
TEXT WordMatch.java
And a helper class:
TEXT WordMatchLexicon.java
Just download both of them, compile them with
$ javac *.java
and run it with
$ java WordMatch
And, since it seems I enjoy this monkey coding thing, I decided
to refactorize it to a python program. Not graded. Just because
I'm nice like that...
TEXT WordMatch.py
To run it, just do
$ python WordMatch.py
I would even convert it to Python 3 but that is too trivial at
this stage so, no.
I am also including a text file full of... that Lorem Ipsum thing,
so that you can test it on your own:
TEXT LoremIpsum.txt
For your amusement, this is the report I filed for this program
(the Java one), so you can have an idea of what was I thinking at
the moment:
TEXT report.txt
In short, it fulfills the assignment requirements but I think there
are many things that can be done to make it a better program so,
if it is of any use to you, go ahead and play with it...
Cheers!