Specify and implement an ADT for fractions. Provide operations that add, subtract, multiply, and divide these numbers. The results of all arithmetic operations should be in lowest terms, so include a private method reduce To Lowest Terms . Exercise 23 in Chapter 2 will help you with the details of this method. To simplify the determination of a fraction’s sign, you can assume that the denominator of the fraction is positive.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here