Search: | |||||

| ||||

Home » Forum » C Programming | RSS Feeds |

In this assignment, you will implement a Polynomial linked list, the coefficients and exponents of the

polynomial are defined as a node. The following 2 classes should be defined.

1.Class Node

? Private member variables: coefficient (double), exponents (integer), and next pointer.

? Setter and getter functions to set and get all member variables

? constructor

2. Class PolynomialLinkedList

? Private member variable to represent linked list (head)

? Constructor

? Public Function to create a Node

? Public function to insert the Node to the linked list (sorted polynomial according to the

exponent).

? Public function to print the polynomial in the elegant format: 23x

? Overloaded public function to allow adding two polynomials

poly3=poly1+poly2

? Overloaded public function to allow negating (!) the sign of any polynomial

poly3=!poly1

? Overloaded public function to allow multiplying two polynomials

? Public function to evaluate polynomial based on an input

If x=1, then the value of this polynomial ...

3. Main

? Main menu to test the following tasks

? cout << "1. Create polynomial \n";

? cout << "2. Print polynomial \n";

? cout << "3. Add two polynomilas \n";

? cout << "4. Negate polynomial \n";

? cout << "5. Multiply two polynomials \n ";

? cout << "6. Evaluate polynomial \n ";

? cout << "7. Exit \n";

Didn't find what you were looking for?
Find more on polynomiallinked list help!
Or get search suggestion and latest updates.

Related Topics:

- help regarding dynamic display of dropdown list
- need help with a mailing list script
- linked list help
- Need to compare individual list items with fixed master list
- Fill List Box Based On Selection On Other List Box
- Help on a designing the help Screen
- pleass i want 2 help this Question.....so plz help me.....
- Check list Box
- AspNetMSTreeToolbarTabMultipage list
- drop down List
- DropDown list
- Launching a new window from a dropdown list
- How can i make an MDB to choose from a list of Queues
- Problem with data list and radio buttons
- What is J2EE List?
- onchange of drop down list wanna to perform action without refreshing
- How to build Cascading List in JDeveloper 10.1.3
- adding a new value to a list(combo box) that doesn't exist
- Learn JDK 6 ===> " File (List all roots) "
- Struts Iterating List
- Multi-color List
- FTPClient class listFiles() method is not returning list of files
- Need List Of Projects
- an applet that uses a list for currency
- Ads and Ad answers on this list...