Question: Implement all functions and operators in the class (polynomial), the answer should be as shown in the sample run. Create a class called polynomial for
Implement all functions and operators in the class (polynomial), the answer should be as shown in the sample run.

Create a class called polynomial for performing polynomial arithmetic. The class has the following header file: class polynomial friend ostream& operator (istream& isObject, polynomial& cObject) void set int, double); int getDegree0 const; double* getPointer) const; polynomial operator (const polynomial&) const; polynomial operator-(const polynomial&)const; polynomial operator (const polynomial&) const; polynomial operator/(const polynomial&) const; polynomial operator%(const polynomial&) const; polynomial(int, double -polynomial0 Use C+-+ private: double *p; The class can be used to add, subtract, multiply, divide, and finds the remainder of two polynomials. Download the needed files from the blackboard and implement the missing functions. Sample run: the coefficients of xS Enter the dosl Create a class called polynomial for performing polynomial arithmetic. The class has the following header file: class polynomial friend ostream& operator (istream& isObject, polynomial& cObject) void set int, double); int getDegree0 const; double* getPointer) const; polynomial operator (const polynomial&) const; polynomial operator-(const polynomial&)const; polynomial operator (const polynomial&) const; polynomial operator/(const polynomial&) const; polynomial operator%(const polynomial&) const; polynomial(int, double -polynomial0 Use C+-+ private: double *p; The class can be used to add, subtract, multiply, divide, and finds the remainder of two polynomials. Download the needed files from the blackboard and implement the missing functions. Sample run: the coefficients of xS Enter the dosl
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
