diff options
| author | abd00l4h <[email protected]> | 2022-10-12 18:31:58 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-10-12 18:31:58 -0700 |
| commit | c15c9786fcb51a408e316ee057e364f42d1ad3bd (patch) | |
| tree | 882cef4c44b9881a048163dc4c4b8896920d8f7f | |
| parent | finished (diff) | |
| download | cst116-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.txt | 20 |
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 |