aboutsummaryrefslogtreecommitdiff
path: root/CST116-Ch7-Debugging
diff options
context:
space:
mode:
authortafaar <[email protected]>2022-10-05 14:31:30 -0700
committerGitHub <[email protected]>2022-10-05 14:31:30 -0700
commita184f2059afb67a4d6737e08db67564bd195e6e2 (patch)
treea780681a2b4ed88e9bf914f27d8ce227493e9286 /CST116-Ch7-Debugging
parentcommit 10 (diff)
downloadcst116-ch7-debugging-hill-main.tar.xz
cst116-ch7-debugging-hill-main.zip
Create CST116-Ch7-Debugging-Hill-FlowchartHEADmain
Diffstat (limited to 'CST116-Ch7-Debugging')
-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;