CSE2305 - Object-Oriented Software Engineering
Assessment

 

Assignment 2: marking guide


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.


Synopsis


Question 1

[30 marks]

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


Question 2

[20 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.


This material is part of the CSE2305 - Object-Oriented Software Engineering course.
Copyright © Jon McCormack, 2005. All rights reserved.

Last Modified: September 2, 2005