CS245 - CS II FALL 1996 PROGRAM II

DUE: beginning of lab - Oct. 11, 1996

WE TEACH U.

(An assignment on inheritance, polymorphism, and file I/O)

You are to design and write a prototype C++ program for an student enrollment program We Teach University. The student data is to be read from the file STUDENT.DAT found on my shared drive. Each student has a name, address, social security number which is the key field, GPA, and major. The first line in the data file for each student identifies the type of student: U - Undergraduate (regular), T- Undergraduate (transfer), I - Undergraduate (international), G - Graduate (regular), R - Graduate (transfer), N - Graduate (international). In addition to the common fields, all undergraduates will have a field identifying their minor and their ACT score while all graduate students will have fields for the name of their previous university and the degree earned. Transfer students will have an extra field identifying their previous university and international students will have another field listing their country of origin and their TOEFL score and a field indicating whether their I-20 has been received. Use Figure 8.5 as a model for designing the hierarchy of objects.

Your program should be able to create a Student Directory, add students to the directory from the file and from the keyboard, display the entire directory of students, and display students of each classification along the number of students of that type.

PROGRAM SMART - REUSE YOUR CODE WHEREVER POSSIBLE!!!!!