Question: HELP IN C++ 3. struct node (. int coeff, exp; i. node next; class e 1 private: node *begin, last; // begin points to the

HELP IN C++  HELP IN C++ 3. struct node (. int coeff, exp; i.

3. struct node (. int coeff, exp; i. node "next; class e 1 private: node *begin, "last; // begin points to the first node and last points to the last node public: efli we(); void set(int, int), printequation(); int average(); The above declaration was used to create polynomial equation as a part of the first assignment. Your task now is to write the code for BOTH main and average member functions. A. The main function should declare an object first and then call the set member function to create a link list with 5 nodes. Also write a calling statement to the average member function and output the result. Write a COMPLETE code for the average member function. The purpose of this function is to average the coeff of ali the exponents that are nidit

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!