diff options
| author | Taylor Rogers <[email protected]> | 2022-11-02 09:12:37 -0700 |
|---|---|---|
| committer | Taylor Rogers <[email protected]> | 2022-11-02 09:12:37 -0700 |
| commit | 586918167cde5097b835a8481e28c7eb775f004b (patch) | |
| tree | c27d67c3ac28fd0e07175332828ddf85cfb04c47 | |
| parent | Extra Commit (diff) | |
| download | cst116-ch11-debugging-taylorrog-586918167cde5097b835a8481e28c7eb775f004b.tar.xz cst116-ch11-debugging-taylorrog-586918167cde5097b835a8481e28c7eb775f004b.zip | |
Pseudo Code
| -rw-r--r-- | CST116-Ch11-Debugging/CST116-Ch11-Debugging-Pseudo-Code-Rogers.txt | 22 |
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 |