From a184f2059afb67a4d6737e08db67564bd195e6e2 Mon Sep 17 00:00:00 2001 From: tafaar <109928737+tafaar@users.noreply.github.com> Date: Wed, 5 Oct 2022 14:31:30 -0700 Subject: Create CST116-Ch7-Debugging-Hill-Flowchart --- CST116-Ch7-Debugging/CST116-Ch7-Debugging-Hill-Flowchart | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 CST116-Ch7-Debugging/CST116-Ch7-Debugging-Hill-Flowchart (limited to 'CST116-Ch7-Debugging/CST116-Ch7-Debugging-Hill-Flowchart') 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; -- cgit v1.2.3