In Frac.h, replace the methodes addition( const Fraction &),subtraction(const Fraction&), multiply(const Fraction &);divide(const Fraction &); void printFraction(); by overloadingoperators +, -, *, /, << respectively.*
Add overloading operators > and < so that they can comparetwo Fractions
Write your own implementation file which is named Frac2.cpp toreplace Frac.cpp and implement the Fraction class and the thenecessary overloading operators.
Download the driver Frac2Driver.cpp
to test your codes. If your codes in files Frac2.h and Frac2.cppare correct, the standard output after the execution of yourprogram should like the following:
7/3 + 1/3 = 8/3
7/3 – 1/3 = 2
7/3 * 1/3 = 7/9
7/3 / 1/3 = 7
7/3 is:
>
PayPal Gateway not configured
PayPal Gateway not configured