summaryrefslogtreecommitdiff
path: root/CST116-Ch11-Debugging/CST116-Ch11-PsuedoCode-Havaldar.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CST116-Ch11-Debugging/CST116-Ch11-PsuedoCode-Havaldar.txt')
-rw-r--r--CST116-Ch11-Debugging/CST116-Ch11-PsuedoCode-Havaldar.txt24
1 files changed, 24 insertions, 0 deletions
diff --git a/CST116-Ch11-Debugging/CST116-Ch11-PsuedoCode-Havaldar.txt b/CST116-Ch11-Debugging/CST116-Ch11-PsuedoCode-Havaldar.txt
new file mode 100644
index 0000000..5c562e7
--- /dev/null
+++ b/CST116-Ch11-Debugging/CST116-Ch11-PsuedoCode-Havaldar.txt
@@ -0,0 +1,24 @@
+Start Program
+Intitialize ReadData function which will read the data of the text file in
+Initialize WriteOutputFile function which will write the output into a output file
+Initialize PrintTotalsAndSummary function which will print out the amount of names which were printed and say the end
+
+Initialize character array
+Initialize integer array
+initialize integer variable
+
+Set output file
+Open input file
+
+If input file is open
+ Run function ReadData with the input and output file and first element in every line as name and second as age
+ Close input file
+ If output file is open
+ Run function output file with output file, name, age, and the number of sets of names and ages
+ Else
+ Output that file cannot be read
+Else
+ Output that file cannot be read
+
+End Program
+