Due Date: March 27, 1997
The third programming project involves modifying the student database program that you wrote for project 2. There are several modifications that are required.
1. First, you are to replace the Tables package with the generic version of the package Tables_Generic, program 5.19, specification, and program 5.20, body, in the textbook. You must write the code for all of the unfinished subprograms bodies in the package.
2. Next, modify the Student_Package so that the Students record is a variant record specifying two kinds of students, current or alumnus. The type definitions for this new record are shown below:
TYPE Categories IS (Current, Alumnus);
TYPE Degrees IS (BS, MS, DSc);
TYPE Students(Category: Categories := Current) IS
RECORD
Name: String(1..15);
ID: Integer;
Birth_Date: Date;
CASE Category IS
WHEN Current =>
Tuition: Quantity;
Amount_Paid: Quantity;
Grade_Point: Float;
WHEN Alumnus =>
Graduation_Date: Date;
Degree: Degrees;
END CASE;
END RECORD;
3. Modify the main procedure to contain an instantiation of Tables_Generic for Students.
4. Finally, make any other changes necessary to reflect the above modifications.