Question: HELP IN C++ 3. struct node (. int coeff, exp; i. node next; class e 1 private: node *begin, last; // begin points to the
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
Get step-by-step solutions from verified subject matter experts
