Question: Keep messing up on overloading operator if someone could work through this c++ program to compile and run on Linux would apreciate it a lot

Keep messing up on overloading operator if someone could work through this c++ program to compile and run on Linux would apreciate it a lot  Keep messing up on overloading operator if someone could work through

Using dynamic arrays, implement a polynomial class. In mathematics, polynomial is a function of the form flx)- a0'x00+ a!"?^! + a2"X"2 + a3"X"3 + n terms. Here, ao, a 1, a2 etc. are the coefficients of the polynomial and n is the order of the polynomial The private variables include the value of x (a real number), the order of the polynomial (an integer) and the dynamic array that stores the coefficients (real numbers). The public methods include a. default constructor that sets the value of x to zero and the order to 0, b. a two argument constructor that takes as arguments the value of x and the order of the polynomial. The values of the coefficients are set to zero. c. inputCoefficients0: prompts the user to input the value of the coefficients of the polynomial. For this homework, skip the user input. Instead assign the coefficent values equal to the index of the position in the array. For example, a0-o, a1 - 1, a2-2 and so on depending on the order of the particular polynomial object c. a copy constructor d.

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!