aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CST116-Ch7-Debugging/CST116-Ch7-Debugging-Output-Preston.txt17
-rw-r--r--CST116-Ch7-Debugging/CST116-Ch7-Debugging-PseudoCode-Preston.txt23
2 files changed, 40 insertions, 0 deletions
diff --git a/CST116-Ch7-Debugging/CST116-Ch7-Debugging-Output-Preston.txt b/CST116-Ch7-Debugging/CST116-Ch7-Debugging-Output-Preston.txt
new file mode 100644
index 0000000..6ea1c60
--- /dev/null
+++ b/CST116-Ch7-Debugging/CST116-Ch7-Debugging-Output-Preston.txt
@@ -0,0 +1,17 @@
+Output Code for Ch7 Debugging
+
+
+Enter your age: 1
+First Birthday
+
+Enter your age: 9
+Child
+
+Enter your age: 14
+Teenager
+
+Enter your age: 34
+Adult
+
+Enter your age: 99
+Senior
diff --git a/CST116-Ch7-Debugging/CST116-Ch7-Debugging-PseudoCode-Preston.txt b/CST116-Ch7-Debugging/CST116-Ch7-Debugging-PseudoCode-Preston.txt
new file mode 100644
index 0000000..357922f
--- /dev/null
+++ b/CST116-Ch7-Debugging/CST116-Ch7-Debugging-PseudoCode-Preston.txt
@@ -0,0 +1,23 @@
+pseudocode for Ch7 debugging
+
+
+
+begin main function
+
+int age = 0
+
+print 'enter your age'
+input age
+
+if age is equivalent to 1
+ print 'First birthday'
+else if age >= 12 and <= 19
+ print 'teenager'
+else if age < 12
+ print 'child'
+else if age >62
+ print 'senior'
+else
+ print 'adult'
+
+end main function \ No newline at end of file