CS 420:
I
NTRODUCTION TO PROGRAMMING IN C++

Kalamazoo College

PROGRAMMING PROJECT 4
Due at the beginning of Lab 5


This programming project may be done individually or in groups of two. Remember that you may not work with the same person on more than two of the programming projects. If you do work with a teammate, hand in one copy of your code with both names on it. It is okay to get help from the TAs and/or the instructor if you get stuck, but you should try to do it on your own first.


Part I: Enhance the Fraction program from Lab 4.

In this assignment you will be implementing comparison operators for the Fraction class. This is difficult to do, however, unless the fractions are in reduced (simplest) form. To do this, we reduce the fractions to equivalent versions that do not have any common divisor.


Part II: Enhance the Aquarium program: Ascending and Descending Fish