Question: 3. struct node int coeff, exp; node next; class e private: node begin, last;// begin points to the first node and last points to the

 3. struct node int coeff, exp; node "next; class e private:

3. struct node int coeff, exp; node "next; class e private: node "begin, "last;// begin points to the first node and last points to the last node public: void assign(int, int); printequation string search(int exp); The above declaration was used to create polynomial equation as a part of the assignment. Your task now is to write the code for BOTH main function and search member function. A. The main function should declare an object first and then write a COMPLETE CODE to create a link list with 5 nodes using the assign member function. Also write a calling statement to the search member function and out put the result. Write a cOMPLETE code for the search member function. The purpose of this function is to search whether the given exponent (exp) is in the list or not. If it is found return "FOUND" else return "NOT FOUND" B

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!