Electrical
and Computer Engineering
Problem-Solving Case Study:
Finding the Area
Under a Curve
•Output: The input data (echo print) and the value calculated for the area over the given interval.
•Discussion: Our
approach is to compute an approximation
by dividing the area into equal width
rectangular strips. Smaller widths give a better answer. We can use a value-returning function to compute the area of each rectangle.