COSC 071: Computer Science I
Part I
Fall 2003
- Design and implement a class for storing information about
students. The class should store the student's name, major,
gpa, and year. Year could be stored as "junior", or it could
be stored as "05".
- Students will be stored in a tab-delimited format. That
is, student records will be stored in a data file with a single
tab character separating each field. The fields will be in the
order name, major, gpa, and year. A newline character will
terminate each record. Spreadsheets frequently use this format.
- Implement necessary constructor, accessor, and observor
methods. Overload the stream insertion and extraction operators
to write and read student records in the format described previously.
- Make sure you thoroughly test your class methods.