Use the trapezoidal rule, the midpoint rule, and Simpson's rule to approximate the given integral with the specified value of n. (Round your answers to six decimal places.)
4

0

y
cos(y) dy, n = 8