Menu

[solved] – Question 9769

Can someone help me with this
#include <iostream>

class polynomial
{
public:
// CONSTANT
static const int CAPACITY = 15;

// CONSTRUCTOR
polynomial(double c = 0.0, int degree = 0);

// MEMBER FUNCTIONS
void add_to_coef(double amount, int degree);
void assign_coef(double c, int degree);
void clear();
double coefficient(int degree) const;
void print();
int degree() const;

private:
// DATA MEMBERS
double coef[CAPACITY];
int largest_degree;
};

#include “poly.h”
#include <cmath>
using namespace std;

static const int CAPACITY = 15;

// Start implementing your functions here

Expert Answer


OR


Leave a Reply

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