FRACTION LAB*
In this lab you will extend the Fraction class to handle subtraction, multiplication, and division.
-= and -.
You will need to declare, define, and use the new operators.
*= and *) and two division operators
(/= and /).
Be sure to provide both the declarations and the definitions of the
operators, and to test them thoroughly.
Recall that division is the same thing as multiplying by the multiplicative inverse, i.e.,
(w/x) / (y/z)
is equivalent to
(w/x) * (z/y)
Print and save your modifications.
Print the Fraction header and implementation files (Fraction.h and Fraction.cpp) and your test program (TestFraction) when you are done. Remove the object code from the project. Copy the Fraction Lab folder from the Temp folder to your floppy disk. You should then remove the folder from the Temp folder on the C: drive.
*This lab is based on the lab from Chapter 2 of The Object Concept by Rick Decker and Stuart Hirshfield, International Thomson Publishing Company, 1995.