Question: Create a class RationalNumber ( fractions ) with these capabilities: a . Implement a constructor that receives two integer parameters ( the first is the
Create a class RationalNumberfractions with these capabilities:
a
Implement a constructor that receives two integer parameters the first is the numerator, and the second is the denominator that prevents a denominator in a fraction, reduces or simplifies fractions that are not in reduced form and avoids negative denominators.
b
Implement a printRational member function that prints out a RationalNumber object.
c
Overload the addition subtraction multiplication division operators, and assignment operators for this class.
d
Overload the relational and equality and operators for this class.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
