Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Lists: Polynomials The purpose of this lab is to: 1) Reinforce your C++ programming skills 2) Provide experience using a list data structure 3) Provide

image text in transcribed
Lists: Polynomials The purpose of this lab is to: 1) Reinforce your C++ programming skills 2) Provide experience using a list data structure 3) Provide experience using STL For this lab you are to write an application that manipulates a univariate polynomial (polynomial in one variable) over reals: 9x + 3.4x + 1.89X2 +0.45 You should represent the polynomial as a linked list. Each node in the list will have an integer degree and a float coefficient. Here is a pictorial representation for the above polynomial: Requirements. Implement a Term Class The Term class should store an integer degree and a double coefficient. You are free to add any private/public methods to support functional operations. Implement a Polynomial Class o The Polynomial class should store a linked list of terms and must implement the following functionality: Create a new polynomial . Your class should have methods to add and remove terms to and from a polynomial. . You should store the polynomial in descending order of degrees. Display a polynomial . This method displays a polynomial in descending order of degrees. Multiply a polynomial a number

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Object Oriented Databases Prentice Hall International Series In Computer Science

Authors: John G. Hughes

1st Edition

0136298745, 978-0136298748

More Books

Students also viewed these Databases questions

Question

1. Who will you assemble on the team?

Answered: 1 week ago