summaryrefslogtreecommitdiff
path: root/CST116-Ch11-Debugging/CST116-Ch11-Debugging-Stark-Psuedo-Code.txt
blob: a64e19235b8158d772d543789fb990e56519f8fb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Trenton Stark
CST 116
Psuedo Code:

open report.txt in the same directory as the program
open data.txt in the same directory as the program

if input file can't be opened print error and exit

for each line in input file:
	put name into character matrix at row line - 1
	put age into int array at index line - 1
	print name and age that was just read

at end of file put number of row inputted into record_counter
close input file

if output file can't be opened print error and exit
for recorder_counter times in name[] and age[]:
	output name[i] and age[i] to same line in output file

output summary with number of lines read to console and ouput file
close output file