Tasks

Design and implement 4 new public member functions in Rational class. Here are the specifications:

1) Rational ADD(Rational) 2) Rational MINUS(Rational) 3) Rational MULTIPLY(Rational) 4) Rational DIVIDE(Rational)

An example of using your functions

Rational R1(2,3), R2(1,4), R3(0,1);

R3 = R1.ADD(R2); //Result: R1 = 2/3, R2=1/4, R3=11/12

Challenge: Write a private/protected function to reduce Rational to its lowest term.

Submit your task via the pages below under your name