Question: Using C++ and the Object oriented concept A polynomial may be represented as a linked list where each node contains the coefficient and exponent of
A polynomial may be represented as a linked list where each node contains the coefficient and exponent of a term of the polynomial. The polynomial 4 would be represented as the linked list. eql 32 Write a program system that reads two polynomials, stores them as linked lists, adds them together, and prints the result as a polynomial. The result should be a third linked list. ravers both polynomials. If a particular exponent value is present in either of the Hint: T two polynomials being summed, then it should be present in the answer. If it is present in both polynomials, then its coefficient is the sum of the corresponding coefficient in both polynomials. (If this sum is zero, the term should be deleted. NOTE: Must write a very general program using Object oriented concept. KEYWORDS: Classes Pointers
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
