Question: Write a class in C++ to represent a polynomial in one variable, using dynamic arrays. The class should store an array of the coefficients and
Write a class in C++ to represent a polynomial in one variable, using dynamic arrays. The class should store an array of the coefficients and the degree of the polynomial. You may assume a maximum degree of 100 for the polynomial. Write the methods for the addition, subtraction, and multiplication operators, input and output operators for the class. Also provide a method for evaluating the polynomial at a specific value. Write program that tests your Polynomial class.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
