In Matlab Develop a program that will:
a. Calculate the integral of a n-order polynomial using Simpson's rule and rectangle rule, the orders will be positive integers.
b. The user shall input the coefficients to the polynomial
c. The user shall be able to define the order of the polynomial
d. The user will define how many segments will be used to approximate the integral
e. The user will define the bounds of the integral
f. The user shall be able to define which integration technique they want to use (They should also have the option to run both integration techniques in one execution)
g. Upon successful calculation of an integral the program should plot the original n-order polynomial and output the total integral on the plot.
The integral polynomials using Simpson's Rectangle Rules are determined.