aboutsummaryrefslogtreecommitdiff
path: root/CST116-Ch7-Debugging/CST116 Ch7 pseudo code.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CST116-Ch7-Debugging/CST116 Ch7 pseudo code.txt')
-rw-r--r--CST116-Ch7-Debugging/CST116 Ch7 pseudo code.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/CST116-Ch7-Debugging/CST116 Ch7 pseudo code.txt b/CST116-Ch7-Debugging/CST116 Ch7 pseudo code.txt
new file mode 100644
index 0000000..51e49bd
--- /dev/null
+++ b/CST116-Ch7-Debugging/CST116 Ch7 pseudo code.txt
@@ -0,0 +1,10 @@
+Under main
+set and place age as 0
+output "Enter your age: "
+input age
+if age is equal to 1, output "First Birthday"
+if age is less than 12, output "Child"
+if age is greater than or equal to 12
+and less than or equal to 19, output "Teenager"
+if age is greater than 62, output "Senior"
+if age is outside those groups, output "Adult" \ No newline at end of file