Course Solutions Uncategorized (Solved) : C Create Class Following According Main Header File Header File Include Include Using Name Q34929187 . . . .

(Solved) : C Create Class Following According Main Header File Header File Include Include Using Name Q34929187 . . . .

 

In c++ create a class that can do the following according to itsmain and header file:

header file:

#include <iostream>
#include <stdlib.h>

using namespace std;

class Polynomial{
public:
  
   Polynomial();              //Default constructor: itcreates an Polynomial of degree 99
   Polynomial(int dg);          //Special constructor: it creates an Polynomialof degree dg
   Polynomial(const Polynomial&Original);   //Copy Constructor
   ~Polynomial();              //Destructor: deallocatememory
   void readPolynomial();      //readPolynomial Method: Reads all positions of thePolynomial
   void printPolynomial();      //printPolynomial Method: Prints all positions of thePolynomial
   void printPolynomial(int n); //printPolynomial Method:Prints the n first positions of the Polynomial
   int getDegree();          //getSize Method: return the Polynomialdegree
   void generatePolynomial(); //generatePolynomialMethod: Generates the elements for the Polynomial
  

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post