|
|
|
|
|
|
|
Assumptions: At least 24 integer numbers will be input before EOF is reached. None of the data values is equal to INT_MAX or INT_MIN. |
|
|
|
|
|
|
|
|
Initialize process
Initialize loop ending condition
WHILE hour <= number of hours in time period
Update process
Update loop ending condition
Print high and low temperatures |
|
|
|
|
|
|
|
|
|
Initialize Process Level 1 |
|
|
|
|
|
|
|
|
|
Set high = machine's minimum integer
Set low = machine's maximum integer |
|
|
|
|
|
|
|
|
|
|
Initialize Loop Ending Condition |
|
|
|
|
|
|
|
|
|
Read temperature
Echo-print temperature
Lowest temperature so far?
Highest temperature so far? |
|
|
|
|
|
|
|
|
|
|
Update Loop Ending Condition |
|
|
|
|
|