RationalNumber Class
(Not rated)
(Not rated)
Book instructions;
10.10 ( RationalNumber Class) Create a class RationalNumber (fractions) with these capabilities:a) Create a constructor that prevents a 0 denominator in a fraction, reduces or simplifiesfractions that are not in reduced form and avoids negative denominators.b) Overload the addition, subtraction, multiplication and division operators for this class.c) Overload the relational and equality operators for this class.
Do exercise 10.10 on page 481 for 100 points.
10 years ago
A+ Work
NOT RATED
Purchase the answer to view it

- rationalnumber.zip