So i was given this program in class. i am supposed to create a four-function calculator for fractions using a fraction class.

Heres what the requirements are:create a member function for each of the four arithmetic operations. For example fadd(), fsub(), fmul() and fdiv(). these member functions iwll each take 1 argument(of type fraction) and return an object of type fraction. your class should provide member functions for input and output. the user should type the first fraction, an operator, and a second fraction. the program should then display the result and ask whether the user wants to continue. you should create a no argument constructor and a two argument constructor for the fraction class. your main program should have a line like:frac3 = frac1.fadd(frac2).

i was givent he formulas for the arithmetic operations. I kinda have an idea on what to do with it but the only thing im really having trouble with is the whole "these member functions will each take 1 argument (of type fraction) and return an object of type fraction" part. i dont know what the instructor means or what he wants exactly. Help would be appreciated.