diff options
Diffstat (limited to 'CST116-Ch11-Debugging-Smith-Pseudo-Code.txt')
| -rw-r--r-- | CST116-Ch11-Debugging-Smith-Pseudo-Code.txt | 19 |
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 |