Extend the menu of options in Problem 4 to include calculating the derivative of a polynomial…

Extend the menu of options in Problem 4 to include calculating the derivative of a polynomial (see Exercise 5).

Problem 4,

Use the Polynomial; a1 class template in a menu-driven program for processing polynomials. The menu of options should (at least) include reading a polynomial, printing a polynomial using the usual mathematical format described in Exercise 2, evaluating the polynomial for a given value of x as described in Exercise 4, and polynomial addition.

Exercise 2,

Add an output operation to the Po1ynomi a1 class template that displays a polynomial in the usual mathematical format except that

Exercise 5,

The derivative of a polynomial  of degree n is the polynomial P (x) of degree n – 1 defined by