|
|
|
|
|
|
|
RectArea (In: leftEdge, width) Out: Function value Level 1 |
|
|
|
|
|
|
|
|
Return Funct(leftEdge + width/2.0) * width |
|
|
|
|
|
|
|
|
|
Get Data (Out: low, high, divisions) |
|
|
|
|
|
|
|
|
|
Prompt for low and high
Read low, high
Prompt for divisions
Read divisions
Echo-print input data |
|
|
|
|
|
|
|
|
|
|
Funct (In: x) Out: Function value Level 2 |
|
|
|
|
|
|
|
|
The Area program implements our design. |
|
|
|
|
|