Problem-Solving Case Study:
Finding the Area Under a Curve
Main
Get data
Set width = (high – low)/divisions
Set area = 0.0
Set leftEdge = low
For count going from 1 through divisions
Set area = area + RectArea(leftEdge, width)
Set leftEdge = leftEdge + width
Print area