$35
COSC 326
Alphabetically oriented
Problem Description
The people behind major dictionaries regularly examine the way language is used, and
from this information either add new words or new meanings to the dictionary. In
order to do this, they need to be able to quickly process a piece of text to find out what
words appear in it.
Task
Write two programs (in different languages) that:
• Take a file name as a command line argument
• Read words from that file (what a ‘word’ is will be negotiated in an early town
hall)
• Output on stdout a list of the lower-case forms (also to be negotiated in town
hall) of the words occurring in the file in alphabetical order, one per line. Each
word should be listed only once.
You do not need to write this from scratch - you may freely search for utilities that
do some or all of the tasks above. But, you must handle the input-output exactly as
specified.
As well as submitting the two programs (and usage instructions), you should write
a brief report (about one side of A4 at 11 or 12 points) reflecting and comparing the
development process in the two languages.
Relates to Objectives
1.1, 1.2, 1.3, 1.4, 2.1, 2.4, 2.7, 2.9, 3.3, 3.4, 3.5, 3.6, 4.3, 4.4, 4.5, 4.7
(1 point, Individual)