summaryrefslogtreecommitdiff
path: root/CST116-Ch11-Debugging/CST116-Ch11-Pseudocode-Ahmed.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CST116-Ch11-Debugging/CST116-Ch11-Pseudocode-Ahmed.txt')
-rw-r--r--CST116-Ch11-Debugging/CST116-Ch11-Pseudocode-Ahmed.txt38
1 files changed, 0 insertions, 38 deletions
diff --git a/CST116-Ch11-Debugging/CST116-Ch11-Pseudocode-Ahmed.txt b/CST116-Ch11-Debugging/CST116-Ch11-Pseudocode-Ahmed.txt
deleted file mode 100644
index 7cd7547..0000000
--- a/CST116-Ch11-Debugging/CST116-Ch11-Pseudocode-Ahmed.txt
+++ /dev/null
@@ -1,38 +0,0 @@
-Iniitialize a constant Int EMPLOYEES to be equal to 20
-Initialize a constant int MAX to be equal to 21
-
-Initialize a chaaracter 2D-array name to have rows of EMPLOYEES and columns of MAX
-Initialize an integer array name to have a lenght of EMPLOYEES
-
-set the desired output file using ofstream outFile to be C:\\TEMP\\CST116-Ch11-Report-Ahmed.txt
-Open the fire to read from at C:\\TEMP\\CST116-Ch11-data-Ahmed.txt
-
-If the file is open
- store the data from the file
- close the input file
- if the output file is open
- write the data we just stored to this file
- close the output file
-
- otherwise
- tell the user there was trouble opening the file
-otherwise
- tell the user there was trouble opening the file
-
-definition for readData
- Initialize a counter to be 0
- prime the read from the file by inputting data to the 0th place of both age and name
-
- while we are not at the end of the file
- print out the names and ages at the index of counter
- increment counter
- again input new data into the naem and age array at the new index of counter
-
-definition of writeoutputfile
- write " Here is the Output File" to the output file
- enter a for loop which iterates until r is no longer less than coutner, starting from 0
- output the data of name and age at the index of r
-
-
-definition of printotalsummary
- print out the total amount of records that we have, both to the output file and to the screen \ No newline at end of file