summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CST116-Ch11-Debugging/CST116-CH11-Debugging-Input.txt10
-rw-r--r--CST116-Ch11-Debugging/CST116-CH11-Debugging-Output.txt15
-rw-r--r--CST116-Ch11-Debugging/CST116-Ch11-PsuedoCode-Havaldar.txt24
3 files changed, 49 insertions, 0 deletions
diff --git a/CST116-Ch11-Debugging/CST116-CH11-Debugging-Input.txt b/CST116-Ch11-Debugging/CST116-CH11-Debugging-Input.txt
new file mode 100644
index 0000000..98863fc
--- /dev/null
+++ b/CST116-Ch11-Debugging/CST116-CH11-Debugging-Input.txt
@@ -0,0 +1,10 @@
+Abdullah 18
+Musa 12
+Samie 90
+Joe 1
+Ham 43
+Ligma 89
+Yvonne 12
+Orion 58
+Fire 9
+Ball 23 \ No newline at end of file
diff --git a/CST116-Ch11-Debugging/CST116-CH11-Debugging-Output.txt b/CST116-Ch11-Debugging/CST116-CH11-Debugging-Output.txt
new file mode 100644
index 0000000..757db26
--- /dev/null
+++ b/CST116-Ch11-Debugging/CST116-CH11-Debugging-Output.txt
@@ -0,0 +1,15 @@
+ Here is the Output File
+Abdullah 18
+Musa 12
+Samie 90
+Joe 1
+Ham 43
+Ligma 89
+Yvonne 12
+Orion 58
+Fire 9
+Ball 23
+
+
+ ** Total Records: 9 **
+ The End
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
+