Question: please answer this question in C++ please answer this question in C++ 3. Specify and implement an ADT for fractions. Provide operations that add, subtract,

please answer this question in C++

 please answer this question in C++ please answer this question in

please answer this question in C++

3. Specify and implement an ADT for fractions. Provide operations that add, subtract, multiply, and divide these numbers. The results of al arithmetic operations should be in lowest terms, so include a private function reduceToLowestTerms. To simplify the determination of a fraction's sign, you can assume that the denominator of the fraction is positive. Next, Specify and implement an ADT for mixed numbers, each of which contains an integer portion and a fractional portion in lowest terms. You can utilize the ADT fraction you created in the first part of this problem. Provide operations that add, subtract, multiply, and divide mixed numbers. The results of all arithmetic operations should have fractional portions that are in the lowest terms. Also, include an operation that converts a fraction to a mixed number

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!