aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorabd00l4h <[email protected]>2022-10-12 18:31:58 -0700
committerGitHub <[email protected]>2022-10-12 18:31:58 -0700
commitc15c9786fcb51a408e316ee057e364f42d1ad3bd (patch)
tree882cef4c44b9881a048163dc4c4b8896920d8f7f
parentfinished (diff)
downloadcst116-ch7-debugging-abd00l4h-c15c9786fcb51a408e316ee057e364f42d1ad3bd.tar.xz
cst116-ch7-debugging-abd00l4h-c15c9786fcb51a408e316ee057e364f42d1ad3bd.zip
Add files via upload
added psuedo code
-rw-r--r--CST116-Ch7-Debugging/CST116-Ch7-PsuedoCode-Havaldar.txt20
1 files changed, 20 insertions, 0 deletions
diff --git a/CST116-Ch7-Debugging/CST116-Ch7-PsuedoCode-Havaldar.txt b/CST116-Ch7-Debugging/CST116-Ch7-PsuedoCode-Havaldar.txt
new file mode 100644
index 0000000..7b078ae
--- /dev/null
+++ b/CST116-Ch7-Debugging/CST116-Ch7-PsuedoCode-Havaldar.txt
@@ -0,0 +1,20 @@
+Set age as 0
+
+Ask user for their age
+
+Set user input as age
+
+Check if the user's age is equal to 0
+ If so, say "First Birthday"
+
+if not, then check if they are between the ages of 12 and 19
+ If so, then say they are a Teenager
+
+if not, then check if they are under 12
+ If so, then say they are a Child
+
+if not, then check if they are above the age of 62
+ If so, then say they are a Senior
+
+if none of these
+ Then say that they are an Adult \ No newline at end of file