aboutsummaryrefslogtreecommitdiff
path: root/CST116-Ch9-Debugging-Ahmed/cst116-ch9-Debugging-Ahmed-Pseudocode.txt
diff options
context:
space:
mode:
authorMusa Ahmed <[email protected]>2022-10-19 17:10:23 -0700
committerMusa Ahmed <[email protected]>2022-10-19 17:10:23 -0700
commit808cb7938115f0d572f03a1047692878ecc9bd2a (patch)
treeab4a234cd982d20d0d96e2b30edf38ff584acf8b /CST116-Ch9-Debugging-Ahmed/cst116-ch9-Debugging-Ahmed-Pseudocode.txt
parentAdded comments (diff)
downloadcst116-ch9-debugging-m005a-808cb7938115f0d572f03a1047692878ecc9bd2a.tar.xz
cst116-ch9-debugging-m005a-808cb7938115f0d572f03a1047692878ecc9bd2a.zip
Finished (I think)
Diffstat (limited to 'CST116-Ch9-Debugging-Ahmed/cst116-ch9-Debugging-Ahmed-Pseudocode.txt')
-rw-r--r--CST116-Ch9-Debugging-Ahmed/cst116-ch9-Debugging-Ahmed-Pseudocode.txt19
1 files changed, 19 insertions, 0 deletions
diff --git a/CST116-Ch9-Debugging-Ahmed/cst116-ch9-Debugging-Ahmed-Pseudocode.txt b/CST116-Ch9-Debugging-Ahmed/cst116-ch9-Debugging-Ahmed-Pseudocode.txt
new file mode 100644
index 0000000..1d80833
--- /dev/null
+++ b/CST116-Ch9-Debugging-Ahmed/cst116-ch9-Debugging-Ahmed-Pseudocode.txt
@@ -0,0 +1,19 @@
+Start Program
+
+Initialize a constant integer "DAYS_PER_YEAR" to 365
+Initialize a function GetAge()
+Initialize a function CalcDays() which passes the age
+Initialize a function PrintResults() which passes age and days, both are ints
+Initialize the iintegers age and days
+
+Run the fucntion GetAge()
+ Prompt the user for their age
+ Store it into the variable age
+Run the function CalcDays(age)
+ Perform the multiplication of DAYS_PER_YEAR and age
+ Return the integer days
+Store the output from the previous function to the int days
+Run th efunction PrintResults(age,days)
+ print the users age, and tell them how many days old they are
+
+End Program \ No newline at end of file