C++ (RationalNumber Class) Create a class RationalNumber (fractions) with the fo
ID: 3568907 • Letter: C
Question
C++
(RationalNumber Class) Create a class RationalNumber (fractions) with the following capabilities:
A) Create a constructor that prevents a 0 denominator in a fraction, reduces or simplifies fractions 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.
D) Use only one .cpp and provide comments inside the code.
E) Request user input for the fraction