Question: Write a C++ program to test a class called RATIONAL with private members: Num, Den & with public functions as follows Constructor to initialize

 Write a C++ program to test a class called" RATIONAL "

Write a C++ program to test a class called" RATIONAL " with private members: Num, Den & with public functions as follows Constructor to initialize the private members with (Num -0, Den -1) Setters & Getters if necessary overload the+,*, ,/to perform the following equations:- Addition a c ad +bc b dbd Multiplication a C ac b d bd Subtraction Division a c ad bc b d a,c ad bd b'd bc

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!