CSE2305 - Object-Oriented Software
Engineering
Assessment
This assignment was due by Friday, 2 September 2005.
Total marks: 50.
Contribution to final mark: 5%.
Please look at the assignment sheet and the sample solution before you begin marking.
Please see also the general comments about marking on the assessment page.
Write a class called Array which
implements an associative array. The key for the table will be a string as
will the data. Each element stored in the table will contain the key and the
data. The class should correctly handle collisions and efficiently store and
retrieve data based on the supplied key.
Array stores both Key and Data – 5 marks
Correctly handles collisions– 5 marks
Functionality (were all the requested functions implemented?) – 5 marks
Quality of solution (adherence to OO principles, quality of coding) – 10 marks
Evidence of Testing – 5 marks
Using the Array class¤ you
implemented in the previous question write a class¤ called PostcodeFinder,
which can load a list of postcodes stored in a file,
and then be used to lookup postcodes.
File I/O: able to read in a list of supplied postcodes and store them in the associative array – 10 marks.
Program testing and demonstration of lookup functionality (this should include looking up cities that don't exist or are in the wrong state, for example) – 5 marks.
Overall quality of solution – 5 marks.
Last Modified: September 2, 2005