summaryrefslogtreecommitdiff
path: root/CST116-Ch11-Debugging/CST116-Ch11-Debugging-Pseudo-Code-Rogers.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CST116-Ch11-Debugging/CST116-Ch11-Debugging-Pseudo-Code-Rogers.txt')
-rw-r--r--CST116-Ch11-Debugging/CST116-Ch11-Debugging-Pseudo-Code-Rogers.txt22
1 files changed, 21 insertions, 1 deletions
diff --git a/CST116-Ch11-Debugging/CST116-Ch11-Debugging-Pseudo-Code-Rogers.txt b/CST116-Ch11-Debugging/CST116-Ch11-Debugging-Pseudo-Code-Rogers.txt
index 868bbb6..41deeae 100644
--- a/CST116-Ch11-Debugging/CST116-Ch11-Debugging-Pseudo-Code-Rogers.txt
+++ b/CST116-Ch11-Debugging/CST116-Ch11-Debugging-Pseudo-Code-Rogers.txt
@@ -1,2 +1,22 @@
1. declare constant int [EMPLOYEES] = 20 and [MAX] = 21
-2. \ No newline at end of file
+2. Create array for input file [inFile] and output file [outFile] to be read into with char [name] and int [age], let the code decide what size is appropriate
+ 1. declare char [name] = [EMPLOYEES]
+ 2. declare int [age]=[EMPLOYEES]
+ 3. declare int [record_counter] = 0
+ 4. declare ifstream [inFile]
+ 5. delcare ofstream [outFile] = C:\\Users\\taylo\\OneDrive\\OIT\\2022_Fall\\CST116\\Week_6\\bChap_11_Report.txt
+ 6. if [inFile] is open
+ 1. set record_counter = ReadData
+ 2. close [inFile]
+ 3. if [outFile] is open
+ 1. run WriteOutputFile
+ 2. run PrintTotalsAndSummary
+ 3. close [outFile]
+ 4. else
+ 1. print "Trouble Opening the Chapter 11 Report File
+ 2. print "** About to EXIT NOW! **"
+ 7. else
+ 1. print "Trouble Opening the Names File"
+ 2. print ** About to EXIT NOW! **
+3. Close the output file
+4. Print the total and summary