< previous page page_289 next page >

Page 289
Output Results
Print femaleCount and femaleAverage
Print maleCount and maleAverage

Initialize Ending Condition Level 2
Open incFile for input (and verify the attempt)
Read sex and amount from incFile

Initialize Process
Set femaleCount = 0
Set femaleSum = 0.0
Set maleCount = 0
Set maleSum = 0.0

Update Process
Echo-print sex and amount
IF sex is F
   Increment femaleCount
   Add amount to femaleSum
ELSE
   Increment maleCount
   Add amount to maleSum

Update Ending Condition
Read sex and amount from incFile

 
< previous page page_289 next page >