From f1acba8bc576f5e2d4d1938b7b6361fd0ff5c8d5 Mon Sep 17 00:00:00 2001 From: abd00l4h <114624309+abd00l4h@users.noreply.github.com> Date: Wed, 2 Nov 2022 22:19:23 -0700 Subject: Add files via upload --- .../CST116-CH11-Debugging-Input.txt | 10 +++++++++ .../CST116-CH11-Debugging-Output.txt | 15 ++++++++++++++ .../CST116-Ch11-PsuedoCode-Havaldar.txt | 24 ++++++++++++++++++++++ 3 files changed, 49 insertions(+) create mode 100644 CST116-Ch11-Debugging/CST116-CH11-Debugging-Input.txt create mode 100644 CST116-Ch11-Debugging/CST116-CH11-Debugging-Output.txt create mode 100644 CST116-Ch11-Debugging/CST116-Ch11-PsuedoCode-Havaldar.txt 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 + -- cgit v1.2.3