Question

C++ help needed please help ( lifesaver)

Createa class RationalNumber (fractions) with the followingcapabilities:

  1. Create a constructor that prevents a 0denominator in a fraction, reduces or simplifies fractions that arenot in reduced form and avoids negativedenominators.

  2. Overload the addition, subtraction,multiplication and division operators for this class.

  3. Overload the relational and equality operatorsfor this class.

Solutions

Expert Solution
No answers


Submit Your Answer