Implement an immutable data type Rational for rational numbers that supports addition, subtraction, multiplication and division.
public class Rational
Rational(int numerator, int denominator)
Rational
plus(Rational b)
sum of this number and b
minus(Rational b)
difference of this number and b
times(Rational b)
product of this number and b
divides(Rational b)
quotient of this number and b
boolean
equals(Rational that)
is this number equal to that?
String
toString()
string representation
Notes