aboutsummaryrefslogtreecommitdiff
path: root/CST116-Ch9-Crombie-pseudocode.txt
diff options
context:
space:
mode:
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