aboutsummaryrefslogtreecommitdiff
path: root/cst116-ch7-debugging-johnson-Psuedocode.txt
diff options
context:
space:
mode:
Diffstat (limited to 'cst116-ch7-debugging-johnson-Psuedocode.txt')
-rw-r--r--cst116-ch7-debugging-johnson-Psuedocode.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/cst116-ch7-debugging-johnson-Psuedocode.txt b/cst116-ch7-debugging-johnson-Psuedocode.txt
new file mode 100644
index 0000000..cf01cbe
--- /dev/null
+++ b/cst116-ch7-debugging-johnson-Psuedocode.txt
@@ -0,0 +1,11 @@
+age = 0;
+ask user for age;
+set age to user input;
+
+if age = 1, output first birthday,
+else if age is between 12 and 19, output teenager,
+else if age is less than 12, output child,
+else if age is greater than 62, output senior,
+else output adult.
+
+return 0 \ No newline at end of file