aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei F <[email protected]>2022-10-12 22:00:43 -0700
committerAndrei F <[email protected]>2022-10-12 22:00:43 -0700
commit44936b2b54ca3b7c605042d442fb389a2eddff2f (patch)
treecb07c4b0c50e139e19f5ba0ff92fae8c70adceb3
parentAdded output to the text file (diff)
downloadcst116-ch7-debugging-florea-44936b2b54ca3b7c605042d442fb389a2eddff2f.tar.xz
cst116-ch7-debugging-florea-44936b2b54ca3b7c605042d442fb389a2eddff2f.zip
Added pseudo-code file, write pseudo-code, final commitHEADmain
-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