Write a class that will allow you to add,( subtract, multiply,and divide) pair o
ID: 3612186 • Letter: W
Question
Write a class that will allow you to add,( subtract, multiply,and divide) pair of common fractions.
Notes:
1. Declare and define the fraction class, that will allow toinput the fraction data, to add multiply subtract and divide.
2. Declares objects to test the function members, and check theprogram
3.Put the result fraction in reduced form.
a. Find the greatest common divisor (gcd) of the numerator anddenominator.
b. Divide the numerator and denominator by the gcd.
The specificationof class Fraction is the following:
classFraction
{ intnumer;
intdenom;
intfind_gcd(int, int);
public:
Fraction();
Fraction(int);
Fraction(int, int);
voidset( int, int);
voidincrement();
voidoperator +(const Fraction &fr2);
voidreduce_fraction(int, int );
voidprint_fraction( );
};
.