aboutsummaryrefslogtreecommitdiff
path: root/CST116-Ch7-Debugging/CST116-Ch7-Florea-pseudo-code.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CST116-Ch7-Debugging/CST116-Ch7-Florea-pseudo-code.txt')
-rw-r--r--CST116-Ch7-Debugging/CST116-Ch7-Florea-pseudo-code.txt19
1 files changed, 19 insertions, 0 deletions
diff --git a/CST116-Ch7-Debugging/CST116-Ch7-Florea-pseudo-code.txt b/CST116-Ch7-Debugging/CST116-Ch7-Florea-pseudo-code.txt
new file mode 100644
index 0000000..60673c9
--- /dev/null
+++ b/CST116-Ch7-Debugging/CST116-Ch7-Florea-pseudo-code.txt
@@ -0,0 +1,19 @@
+define age as integer and set it to 0
+
+display "Enter your age: "
+take user input for variable age
+
+compare if age is equal to 1
+ display "First Birthday"
+
+compare else if age is more than or equal to 12 OR less than or equal to 19
+ display "Teenager"
+
+compare else if age is less than 12
+ display "Child"
+
+compare else if age is more than 62
+ display "Senior"
+
+else (used as catching anything else)
+ display "Adult" \ No newline at end of file