Main()
int Num1[256], Num2[256], Total[256] (Part 1)

int Total[256], Num1[256], Num2[256] (Parts 2&3)

1. Show page table

Load( Num2, File2 )
3. Show page table

Load( Num1, File1 )
5. Show page table

Init( Total )
7. Show page table

Calc( Total, Num1, Num2 )
9. Show page table

Print( Total )
11. Show page table

Exit


Init( TArray )

For i = 0 to 255
    TArray[i] = 0
EndFor

6. Show page table

Return

Load( Array, Fname )

I = 0
Open Fname

While ( Not = EOF )
    Read Fname into Array[i]
EndFor

2. & 4. Show page table (called twice from main)

Return

Calc( TArray, Array1, Array2 )

For i = 0 to 255
    TArray[i] = Array1[i] + Array2[i]
EndFor

8. Show page table

Return

Print( Array )

For i = 0 to 255
    Print Array[i]
EndFor

10. Show page table

Return