Question: C++ please Define a class for a type called Fraction. This class is used to represent a ratio of two integers. nclude tow mutator functions
Define a class for a type called Fraction. This class is used to represent a ratio of two integers. nclude tow mutator functions that allow the user to set the numerator and the denominator. Also include a member function that returns the value of the numerator divided by the denominator as a double. Use a constructor with defaults of your choosing. The program must validate the denominator so that it is not a zero. Also, the program should run in a loop. Don't forget to validate data and add comments
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
