User Profile
Collapse
-
Rational number class
Complete the following Java Class that may be used to represent a Rational number (i.e. a number of the form a /b where a and b are ints). Implement the constructors and methods to subtract, multiply and divide two Rational numbers. Also implement a toString method to allow the number to be written out. *Do not worry about simplifying your fractions (an answer of 2/4 is just as good as 1/2). Remember that fractions must not have denominators of ...
No activity results to display
Show More