// csc211-806 // Omar Hamadache // Hints for project 5.2, p.263 1- To override the compareTo method keep the same signature: public int compareTo (Object obj) 2- declare a variable to hold the constant tolerance value. 3- cast the object passed to the method into a Rational number 4- compute the equivalent decimal value for each Rational number; the current object and the one passed as argument, both now Rationals. 5- compute the difference between these two decimal quantities 6- compare that difference to the tolerance using if statements and assign a negative (-1 for instance), zero, or positive (1 for instance) value in each block of the if-statements respectively for the three scenarios: current object less the object passed as argument, current object equal to the object passed as argument, current object larger than object passed as argument. Note: ----- You may also define a method that called toDecimal that returns the decimal (double for instance) value of the Rational number and then use it as intemedaite step above. The header is something like this public double toDecimal( ) cast either of the two fields and return the numerator/denominator