0

I need help? Plz somebody can help me?

Define a class Polynomial with three private data members a, b and c (type double) to represent the coefficients of a 2-degree polynomial :(ax2 + bx + c). Include a constructor in the Poly class to initialize private data members with user supplied values (in addition to the default constructor).The class overloads the addition(+)and subtraction (-) operators to return the sum/subtraction of two polynomial objects.Also define a showpoly() member function to output Poly objects in the specified format, i.e. ax2 + bx + c where a, b and c are the coefficients. Do not display the terms with (x2 or x) if these have zero coefficients. Moreover, if value of coefficient is negative it should be preceded by a minus sign.Also overload equality operator (= =) that compares the two quadratic polynomials numbers and returns the result in Boolean form. The roots of quadratic equations will be solved by using the following formula. Class also overloads the increment (++) and decrement (--) operator that increase and decre

29th Apr 2020, 2:39 PM
Müż Å MmÂl
Müż Å MmÂl - avatar
3 Respostas
+ 1
What is the needed coding language?
29th Apr 2020, 4:25 PM
JaScript
JaScript - avatar
0
What's the targeted language? Where is your attempt? What's your specific problem? Provide relevant informations and don't expect somebody will do your homework for you ;P
29th Apr 2020, 3:56 PM
visph
visph - avatar
0
C++
29th Apr 2020, 4:33 PM
Müż Å MmÂl
Müż Å MmÂl - avatar