Question: C++ Make a Fraction class With two int members (numerator and denominator) Create the folIOWing member functions - Create an Input function to allow the
C++

Make a Fraction class With two int members (numerator and denominator) Create the folIOWing member functions - Create an Input function to allow the user to enter the numerator and denominator Make sure to have exception or if condition to deal With a denominator of 0 (zero), - Create a Print function which will print out the Fraction in the form numeratormenominator l e 2s'3 - Empty constructor which initializes the Fraction zero - A oneeparameter constructor foriust a numerator (int). This would make the Fraction represent a whole number - A one-parameter constructor With a double This would make a Fraction by multiplying the double bv100000'theh creating a numerator and denominator as the result. For example; PI. 3.14159 would be saved in a Fraction obiect as 314159100000 - A twoeparameter constructor With both numerator (int) and denominator (int). This would make a Fraction With both a numerator and denominator - Add function taking a Fraction as a parameter and returning a Fraction - Subtract function taking a Fraction as a parameter and returning a Fraction - Multiply function taking a Fraction as a parameter and returning a Fraction - Divide function taking a Fraction as a parameterand returning a Fraction - Add function taking two Fractions as parameters and updating the current object - Subtract function taking two Fractions as parameters and updating the current object - Multiply function taking two Fractions as parameters and updating the current object - Divide function taking two Fractions as parameters and updating the current object Make sure to use exception handling in the event there is ever a dwide by zero or any other error condition that would cause the program to terminate unexpectedly in the main program create a looping menu driven interface, which allows the user to enter in two Fractions usmg the lnputt) function and a mathematical operation After the operation' print the Fraction result using the Print() function The loop ends when the user enters Q or q to quit for the math operation
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
