Home-->Assignments-->Assignment-4
 | Specification | Download | Extensions | Submission | Assessment |

The starting program

Deadline for Assignment 4: 4:00pm Thursday 19th January 2012

The starting program is basically the same as the starting program of exercise e) of the Reference exercises (week 8). This program comprises 8 classes: Reference, JavaGlossary, CppGlossary, Glossary, Term, Lexicon, WordDistance and EasyIn. Reference is the main class and at the moment only provides a simple interaction with the user. JavaGlossary and CppGlossary are subclasses of Glossary which only store the terms for each of these glossaries. The classes Glossary, Term, Lexicon, WordDistance and EasyIn are basically the same as those in the first assignment.

On executing the method interact in the Reference class you will notice that this program has a very simple interaction with the user. When the user inputs a phrase, the program simply responds whether the term is in the reference or not. The interaction finishes when the user enters the special term `finish'.

It is advisable to take the provided program as a starting point for your implementation. You can download this program from the following link.


Last updated at 9:07pm, Thursday September 22nd 2011
Dr Natalia Beloff (N.Beloff@sussex.ac.uk)