(please wait while the applet loads...)
The applet below computes a Riemann sum for a given function and displays the sum and the rectangles that define the sum. In choosing the rectangles, it can use: Left Endpoint Rule, Midpoint Rule, Right Endpoint Rule, Inscribed Rectangles, Circumscribed Rectangles, or the Trapezoid Rule (the Trapezoid Rule rule is not a Riemann sum, but like the other rules it can also be used to approximate the integral).
RiemannSums applet written by David Eck (http://math.hws.edu/javamath/index.html)