CS 210 – Fundamentals of Programming I
Spring 2007 – In-class Exercise for 4/4/07 & 4/5/07


Name(s):


(10 points) Complete this exercise in pairs. The purpose of this exercise is to work with the overloaded I/O operators. It is an implementation of Project 1 using a Student class object as covered in lecture. In this version, student data is stored in a Student class object. There are no written questions.


Assignment

0. Create a new project, then download files inclass23.cpp, student.h, and student.cpp from the course webpage under today's date and add it to your project. The Student class is incomplete, so this program will not compile. It is missing the code for operator>> and operator<<.


1. Complete this program by doing the following:



Build and test your program until you are confident that it computes the correct result. When you have completed this exercise, print out and turn in copies of student.h and student.cpp.

04/03/07 1