# Answer to Question #70810 in Java | JSP | JSF for Ronit Bhardwaj

Question #70810

public class Polynomial {

private static class TermNode{

private double coefficient;

private int exponent;

private TermNode next;

public TermNode(int exp, double coeff, TermNode nextTerm )

{

coefficient= coeff;

exponent = exp;

next = nextTerm;

}

}

private TermNode first;

public Polynomial() {

first = new TermNode(0,0, null);

}

public Polynomial(double a0)

{

first = new TermNode(0,a0,null);

}

public Polynomial(Polynomial p)

{

first = new TermNode(p.first.exponent, p.first.coefficient, p.first.next);

}

public void add_to_coef(double amount, int exponent) {

first = new Termnode(

}

public String toString() {

}

return s;

This is showing errors I am not able to implement it properly

private static class TermNode{

private double coefficient;

private int exponent;

private TermNode next;

public TermNode(int exp, double coeff, TermNode nextTerm )

{

coefficient= coeff;

exponent = exp;

next = nextTerm;

}

}

private TermNode first;

public Polynomial() {

first = new TermNode(0,0, null);

}

public Polynomial(double a0)

{

first = new TermNode(0,a0,null);

}

public Polynomial(Polynomial p)

{

first = new TermNode(p.first.exponent, p.first.coefficient, p.first.next);

}

public void add_to_coef(double amount, int exponent) {

first = new Termnode(

}

public String toString() {

}

return s;

This is showing errors I am not able to implement it properly

Expert's answer

Dear Ronit Bhardwaj, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed:

**Submit order**Need a fast expert's response?

Submit orderand get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

## Comments

## Leave a comment