aboutsummaryrefslogtreecommitdiff
path: root/CST116-Ch9-Crombie-pseudocode.txt
diff options
context:
space:
mode:
authorJonCr <[email protected]>2022-10-22 17:23:19 -0700
committerJonCr <[email protected]>2022-10-22 17:23:19 -0700
commit115b3cd2640c61b20bd6c2e010ea1ad34ab95aba (patch)
tree2c6af2863452428124bd301ce924e2e840c6c6a8 /CST116-Ch9-Crombie-pseudocode.txt
parentAdding gitignore (diff)
downloadcst116-ch9-debugging-cognitiveshadow-main.tar.xz
cst116-ch9-debugging-cognitiveshadow-main.zip
FinishedHEADmain
Diffstat (limited to 'CST116-Ch9-Crombie-pseudocode.txt')
-rw-r--r--CST116-Ch9-Crombie-pseudocode.txt16
1 files changed, 16 insertions, 0 deletions
diff --git a/CST116-Ch9-Crombie-pseudocode.txt b/CST116-Ch9-Crombie-pseudocode.txt
new file mode 100644
index 0000000..12721a7
--- /dev/null
+++ b/CST116-Ch9-Crombie-pseudocode.txt
@@ -0,0 +1,16 @@
+Set DAYS_PER_YEAR equal to 365
+Declare functions
+Start main function
+Set age equal to 0
+Set days equal to 0
+Run GetAge function
+ Print "Please enter your age: "
+ Input age
+Set age equal to input value
+Run CalcDays function
+ Give age the alias "years"
+ Set days equal to years multiplied by DAYS_PER_YEAR
+Set days equal to result
+Run PrintResults
+ Print age and "! Boy are you old!"
+ Print "Did you know that you are at least " days " days old?" \ No newline at end of file