Question: PP 7.4 Modify the Rational Number class so that it implements the comparable interface. To perform the comparison, compute an equivalent floating point value

PP 7.4 Modify the Rational Number class so that it implements the comparable interface. To perform the comparison, compute an equivalent floating point value from the numerator and denominator for both Rational Number objects, then compare them using a tolerance value of 0.0001. Write a main driver to test your modifications.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
