Question: ******************USE C++ CODE**** C++ CODE ************************************************************************ THIS IS THE REQUIREMENT FOR THE C++ PROGRAM ******************************************************************************************************************************** Note: 1. the driver program to test your class: Frac2Driver.cpp(dont

******************USE C++ CODE**** C++ CODE ************************************************************************

THIS IS THE REQUIREMENT FOR THE C++ PROGRAM

********************************************************************************************************************************

******************USE C++ CODE**** C++ CODE ************************************************************************ THIS IS THE REQUIREMENT FOR THE

Note:

1. the driver program to test your class: Frac2Driver.cpp(dont modify it for your final test).

// driver for Fraction project part 2

#include "Frac2.h"

int main()

{

Fraction c( 7, 3 ), d( 3, 9 ), x;

// c.printFraction();

cout

cout

// d.printFraction();

cout

cout

x = c + d;

// x.printFraction();

cout

cout

// c.printFraction();

cout

cout

// d.printFraction();

cout

cout

x = c - d;

// x.printFraction();

cout

cout

// c.printFraction();

cout

cout

// d.printFraction();

cout

cout

x = c * d;

// x.printFraction();

cout

cout

// c.printFraction();

cout

cout

// d.printFraction();

cout

cout

x = c / d;

// x.printFraction();

cout

cout

// c.printFraction();

cout

cout

cout d ) ? " > " : "

// d.printFraction();

cout

cout operator ";

cout = " );

// d.printFraction();

cout

cout

return 0;

}

2. Have Frac2.h and your implementation file Frac2.cpp in your answer, Thank you

. In Frac.h, replace the methodes addition( const Fraction & ),subtraction(const Fraction&), multiply(const Fraction &); divide(const Fraction &); void printFraction0: by overloading operators +, , ,/, and 1/3 according to the overloaded> operator >- 1/3 according to the overloaded operator Press any key to continue

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!