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

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!