Include the class written for exercise 11a by including it


a. Construct a class named Fractions containing two integer data members named num and denom, used to store the numerator and denominator of a fraction having the form num/denom. Your class should include a default constructor that initializes num and denom to 1 and four operator functions for adding, subtracting, multiplying, and dividing the two fractions, as follows:

23_b31dcaed-e382-47c5-a357-1b385fb104b1.png

Your class should have input and output functions for entering and displaying a fraction.

b. Include the class written for Exercise 11a by including it in a working C++ program that can be used to test each of the class's member methods.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Include the class written for exercise 11a by including it
Reference No:- TGS02192083

Expected delivery within 24 Hours