(B) Let f(x)=\left\{\begin{array}{ll} 1+x & -1 \leq x \leq 0 \\ 1-x & 0 \leq x \leq 1 \end{array}\right. Find an approximation of the integral of f over [-1,1] by using (a) the simple Trapezoidal rule, (b) the simple Simpson rule, (c) the midpoint rule, or (d) the left endpoint rule.