functions that return a fraction object. They should be named addedTo, subtract, multipliedBy, and dividedBy.
Write a fraction class whose objects will represent fractions. You should provide the following member functions: Two constructors, a default constructor which assigns the value 0 to the fraction, and…