From 586918167cde5097b835a8481e28c7eb775f004b Mon Sep 17 00:00:00 2001 From: Taylor Rogers Date: Wed, 2 Nov 2022 09:12:37 -0700 Subject: Pseudo Code --- .../CST116-Ch11-Debugging-Pseudo-Code-Rogers.txt | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3