|
|
|
|
|
|
|
Open file dataFile for input
IF dataFile could not be opened
Terminate program
Open file reportFile for output
IF reportFile could not be opened
Terminate program
Get data
Compute departmental averages
Write table to reportFile
Calculate summary
Write bar chart to reportFile |
|
|
|
|
|
|
|
|
|
Open For Input (Inout: someFile)$ 20S:Level 1 |
|
|
|
|
|
|
|
|
|
We can reuse the Open For Input module from the
preceding Election program. |
|
|
|
|
|
|
|
|
|
|
Open For Output (Inout: someFile) |
|
|
|
|
|
|
|
|
|
We can reuse the Open For Output module from the
preceding Election program. |
|
|
|
|
|
|
|
|
|
|
Get Data (Out: absenteeData; Inout: dataFile) |
|
|
|
|
|
|
|
|
|
FOR day going from MONDAY through FRIDAY
FOR dept going from A through F
Read absenteeData[dept][day] from dataFile |
|
|
|
|
|
|
|