aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CST116-Ch7-Debugging/CST116-Ch7-Debugging-Hill-Flowchart14
1 files changed, 14 insertions, 0 deletions
diff --git a/CST116-Ch7-Debugging/CST116-Ch7-Debugging-Hill-Flowchart b/CST116-Ch7-Debugging/CST116-Ch7-Debugging-Hill-Flowchart
new file mode 100644
index 0000000..27d7c6a
--- /dev/null
+++ b/CST116-Ch7-Debugging/CST116-Ch7-Debugging-Hill-Flowchart
@@ -0,0 +1,14 @@
+SET age = 0;
+
+PRINT "Enter your age.";
+SET age = input;
+
+IF age is 1
+ PRINT "First birthday";
+ELSE IF age is >= 12 AND age is <= 19
+ PRINT "Teenager" ENDLINE;
+ELSE IF age is < 12
+ PRINT "Child" ENDLINE;
+ELSE IF age is > 62
+ PRINT "Senior" ENDLINE;
+ELSE PRINT "Adult" ENDLINE;