Question: c++ --------------- Question 2 Create a class to handle fractions, using multiple cpp files and appropriate.h file. Both the numerator and denominator are integers, positive

c++ ---------------

c++ --------------- Question 2 Create a class to handle fractions, using multiple

Question 2 Create a class to handle fractions, using multiple cpp files and appropriate.h file. Both the numerator and denominator are integers, positive or negative. Your class must have a default constructor that uses a constructor list to initialize the values. The fraction must default to 1/1 Overload operators ,-, +,-so they work with your Fraction class. You will most likely need to create a private method to convert fractions to a common denominator so that, for example, the class can work with 1/2 and -4/-8, and another private method to reduce the fraction to lowest form (4/8 would print as 1/2). All output should show the fraction in lowest form You will need a method to display the fraction as a fraction. If the fraction has numerator 4 and denominator 7 then it should display 4/7 Bonus points (1 ea) for overloading *. =

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!