|
|
|
|
|
|
|
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 |
|
|
|
|
|
|
|
|
|
|
|
Set femaleCount = 0
Set femaleSum = 0.0
Set maleCount = 0
Set maleSum = 0.0 |
|
|
|
|
|
|
|
|
|
|
|
Echo-print sex and amount
IF sex is F
Increment femaleCount
Add amount to femaleSum
ELSE
Increment maleCount
Add amount to maleSum |
|
|
|
|
|
|
|
|
|
|
|
Read sex and amount from incFile |
|
|
|
|
|
|
|