Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started