write a program to approximate the integral of a function  of one variable.  Your program will use the trapezoid rule.