summaryrefslogtreecommitdiff
path: root/CST116-Ch11-Debugging-Smith-Pseudo-Code.txt
blob: 4f5695ed199638ad03d878ca1edc6fa6cf5b3ea9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Main:
1) Initialize variables and arrays
2) Initialize the input file 'inFile'
3) Initialize the output file 'outFile' and set its address
4) Open the input file as an address
5) If the in-file is opened successfully read the file's data to an array and close the file
6) If the out-file is opened successfully, write to the output array
7) If the in or out files aren't opened successfully, write an error output to the console

ReadData:
1) Set 'counter' variable to 0
2) Systematically read all the info from the in-file
3) Return 'counter'

WriteOutputFile:
1) Write to the out-file

PrintTotalsAndSummary:
1) Output how many lines of info were in the in-file and write "The End"