summaryrefslogtreecommitdiff
path: root/CST116-Ch11-Debugging-Smith-Pseudo-Code.txt
diff options
context:
space:
mode:
author[email protected] <[email protected]>2022-11-09 16:27:44 -0800
committer[email protected] <[email protected]>2022-11-09 16:27:44 -0800
commitb245e24ebed4873f615ff91259f0959edfc21b9b (patch)
tree2c6e74c34a221815743d35707dbb0b3119c1d562 /CST116-Ch11-Debugging-Smith-Pseudo-Code.txt
parentInitial commit (diff)
downloadcst116-ch11-debugging-smith-benjamin-master.tar.xz
cst116-ch11-debugging-smith-benjamin-master.zip
Tis a PushHEADmaster
Diffstat (limited to 'CST116-Ch11-Debugging-Smith-Pseudo-Code.txt')
-rw-r--r--CST116-Ch11-Debugging-Smith-Pseudo-Code.txt19
1 files changed, 19 insertions, 0 deletions
diff --git a/CST116-Ch11-Debugging-Smith-Pseudo-Code.txt b/CST116-Ch11-Debugging-Smith-Pseudo-Code.txt
new file mode 100644
index 0000000..4f5695e
--- /dev/null
+++ b/CST116-Ch11-Debugging-Smith-Pseudo-Code.txt
@@ -0,0 +1,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" \ No newline at end of file