CS210 Lab: Software Engineering Principles Postlab


Postlab Exercise:

This postlab exercise asks you to modify the code for the fraction class.
Click here to download this project

We have decided to change the specifications. We would like to be able to store a fraction in its proper or improper form. In it's proper form, it should be reduced. When a number is converted to proper form, the whole number should be stored. We should also allow the conversion from improper to proper and from proper to improper. However, we will assume that the input remains in numerator/denominator format.

To summarize, we will have data members:

We will have member functions:

To Do:

  1. Implement this as code.
  2. Develop a test plan for the modified ConvertToProper and the new ConvertToImproper member functions

For Answers, click here
Back to Software Engineering Principles Lab click here

CS Dept Home Page
CS Dept Class Files
CS210 Class Files

Copyright: Department of Computer Science, University of Regina.