CS 117 Assignment, due 2/3/97

Spell-Checker

You may work with one other person for this assignment.

The task

Your program will be provided with (1) a dictionary file and (2) a text file to be checked against the dictionary--perhaps a letter to your grandfather about why you had your tongue pierced. The program print out a list of all the words in the letter to Gramps that are not in the dictionary.

Your program should ask the user for the names of the two relevant files. This way, you can test your program using different dictionaries and different text files without recompiling every time.

Details

You should assume the dictionary file contains one word per line, with no extra spaces or punctuation. The 79339-word words.txt is such a file, and all of its words have 8 or fewer letters.

The programs inputFiles.p and outputFiles.p demonstrate how to use files within a gpc Pascal program without using "<" or ">" on the Unix command-line. The program Jeff Ondich, Department of Mathematics and Computer Science, Carleton College, Northfield, MN 55057
(507) 646-4364, jondich@carleton.edu