Create a Fraction class to perform arithmetic and relational operations on rational numbers in reduced form:
int numerator, int denominator.reduce() using Greatest Common Divisor (gcd) ensuring denominator is positive and fraction is in irreducible form.Fraction(int num = 0, int den = 1).+, -, *, /==, !=, <, >, <=, >=Fraction operator-() const returning negative fraction.++f and Post-increment f++--f and Post-decrement f--+=, -=, *=, /=display() const: Prints fraction in a/b format.f1 = 1/2, f2 = 3/4).f1 = 1/2, f2 = 3/4 f1 + f2 = 5/4 f1 - f2 = -1/4 f1 * f2 = 3/8 f1 / f2 = 2/3 Unary -f1 = -1/2 f1 < f2: TRUE f1 == f2: FALSE Pre-increment ++f1 = 3/2 f1 += f2 -> 9/4 [✓] Fraction operator overloading verified (Time: 0.008s, Memory: 2.1 MB)