
The George Washington University
School of Engineering and Applied Science
Department of Electrical Engineering and Computer Science
CSci 131 -- Data Structures
Project #3
Due Date: week 7
The purpose of this project and Project 4 is to give you some practice in dealing with generic packages, and illustrate the advantages of a clearly-specified generic interface in supporting multiple implementations and multiple clients. This project uses material from Chaps. 2, 3, and 5.
In Project 2 you developed a package to handle a table of employee records. Program 5.19 presents a generic version of a table package, Tables_Generic. The body of this package uses an ordered array implementation of the table objects, and so instantiates Binary_Search_Generic (Programs 5.12 and 5.14) to provide a table-searching operation. The package operations are "stubbed out", containing only some calls to Debugging_Support to display an "under construction" message.
(A). Reimplement the employee database using the generic keyed table package, instantiating the package for Employee. That is,
You should be able to reuse almost all your Project 2 work directly. Employee_UI will need some small changes, to refer to the new table package insetad of the old one.
(B) Complete the airline passenger list project outlined in Section 5.10. That is,