summaryrefslogtreecommitdiff
path: root/CST116-Ch11-Debugging/CST116-Ch11-Debugging-Stark-Psuedo-Code.txt
diff options
context:
space:
mode:
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