/* * Header goes here. Don’t forget to add comments documenting each function! */#ifndef RATIONAL_H
Additionally, you will need to develop a reduce() method tosimplify fractions. You should find the greatest common factor ofboth numerator and denominator, and divide both by them. This willturn 3/6 into 1/2. reduce() should be called at the end of eacharithmetic operation to make sure the internal representation issimplified. As a starting point to find greatest common denominator(gcd), try the Euclidean algorithm (from Wiki):
Function gcd(a,b) while b !=
PayPal Gateway not configured
PayPal Gateway not configured