Please use C++.
Develop class Term. The class should contain a coefficient and an exponent so the term 3x^6 for example would have a coefficient of 3 and an exponent of 6. You should also overload the output operator (<<) to properly display this term.
Also develop class Polynomial. The internal representation of a Polynomial is an array of terms. Develop a complete class containing prope constructor and destructor functions as well as set and get functions. The class should also provide the following overloaded operator capabilities:
1) Overload the addition operator (+) to add two Polynomials.
2) Overload the assignment operator to assign one Polynomial to another. (=)
c) Overload (+=) and (-=) operators.
d) Overload the output operator (<<) to show the polynomial.
Finally, create a main.cpp where you define any Polynomial objects and show that the operator overloading functions are working.