summaryrefslogtreecommitdiff
path: root/CST116-Ch11-Debugging/CST116-Ch11-Debugging-Stark-Psuedo-Code.txt
diff options
context:
space:
mode:
authorBirducken <[email protected]>2022-11-07 23:07:36 -0800
committerBirducken <[email protected]>2022-11-07 23:07:36 -0800
commit5e6d23d23726bd02e59d5e0b884c5a8d392bd0eb (patch)
treeb4cfbc693635ed214345cce2120f6a48c50992ad /CST116-Ch11-Debugging/CST116-Ch11-Debugging-Stark-Psuedo-Code.txt
parentMerge branch 'master' of https://github.com/CST116/cst116-ch11-debugging-stark (diff)
downloadcst116-ch11-debugging-stark-master.tar.xz
cst116-ch11-debugging-stark-master.zip
Added psuedo code. Finished.HEADmaster
Diffstat (limited to 'CST116-Ch11-Debugging/CST116-Ch11-Debugging-Stark-Psuedo-Code.txt')
-rw-r--r--CST116-Ch11-Debugging/CST116-Ch11-Debugging-Stark-Psuedo-Code.txt23
1 files changed, 23 insertions, 0 deletions
diff --git a/CST116-Ch11-Debugging/CST116-Ch11-Debugging-Stark-Psuedo-Code.txt b/CST116-Ch11-Debugging/CST116-Ch11-Debugging-Stark-Psuedo-Code.txt
new file mode 100644
index 0000000..a64e192
--- /dev/null
+++ b/CST116-Ch11-Debugging/CST116-Ch11-Debugging-Stark-Psuedo-Code.txt
@@ -0,0 +1,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 \ No newline at end of file