This preview shows pages 1–2. Sign up to view the full content.
Assignment Overview:
This assignment focuses on the design, implementation and testing of programmer
defined data types.
You are to develop a C++ class which supports the manipulation of
“Fractions”, as described below.
Assignment Specifications:
1)
The class which you will develop is outlined in the following file:
 (I’ve included this) 
That file specifies the set of permitted operations for the type “Fraction”, which may not
be modified.
You will supply the appropriate declarations in the “private” section of class
“Fraction”, as well as the implementation of each permitted operation.
2)
A valid fraction is defined as an ordered pair of integers A/B, where B is not equal to
zero. Internally, a fraction will be maintained in its simplest (reduced) form.
3)
The format of a fraction in an input stream will be an integer (the numerator), the
character “/”, and an integer (the denominator).
4)
This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
This is the end of the preview. Sign up
to
access the rest of the document.
 Spring '08
 McCullen

Click to edit the document details