Modify the rationalnumber class so that it implements the


Question: Modify the RationalNumber 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 RationalNumber objects, then compare them using a tolerance value of 0.0001. Write a main driver to test your modifications.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Modify the rationalnumber class so that it implements the
Reference No:- TGS02318705

Expected delivery within 24 Hours