Sequence | Question |
---|---|
Initialize variables | Write an algorithm that reads in the number of Y-data points the width of each rectangle (W) then reads in all the Y-data points |
Process Data | The algorithm should then iteratively compute the area of each rectangle for each of the Y-data points and accumulate the total. |
Print Final Results | After all points have been processed the algorithm should print the total area. |