Example 2: Polynomials Develop class Term. The class contains (a) Acoefficient, and an exponent. …



Example 2: Polynomials Develop class Term. The class contains (a) Acoefficient, and an exponent. E.g., term 2x 4 has the coefficient of 2 and the exponent 4. (2) overload the output operator (s) to properly display the term Develop class Polynomial. The internal representation of a Polynomial is an array of terms. Develop a complete class containing proper constructor and destructor functions as well as set and get functions. The class should also provide the following overloaded operator capabilities: b) Overload the assignment operator to assign one Polynomial to another. c) overload the addition assignment operator subtraction assignment operator Write a driver program. You feel free to define any Polynomial objects, and demonstrate you can use the operator overloading functions. Q003 Prentice Hall, Inc. All rights reserved. TT

Example 2: Polynomials Develop class Term. The class contains (a) Acoefficient, and an exponent. E.g., term 2x 4 has the coefficient of 2 and the exponent 4. (2) overload the output operator (s) to properly display the term Develop class Polynomial. The internal representation of a Polynomial is an array of terms. Develop a complete class containing proper constructor and destructor functions as well as set and get functions. The class should also provide the following overloaded operator capabilities: b) Overload the assignment operator to assign one Polynomial to another. c) overload the addition assignment operator subtraction assignment operator Write a driver program. You feel free to define any Polynomial objects, and demonstrate you can use the operator overloading functions. Q003 Prentice Hall, Inc. All rights reserved. TT

"Is this question part of your assignment? We can help"

ORDER NOW