aboutsummaryrefslogtreecommitdiff
path: root/CST116-Ch7-Debugging
diff options
context:
space:
mode:
authorprestonderek <[email protected]>2022-10-12 21:06:08 -0700
committerprestonderek <[email protected]>2022-10-12 21:06:08 -0700
commit13e0e9179edcbc536a5d6da2512006892074cea8 (patch)
tree4964effa5940dd5e2457b03e5776a1fcf3e0f322 /CST116-Ch7-Debugging
parentExersize 3 complete. (diff)
downloadcst116-ch7-debugging-prestonderek-main.tar.xz
cst116-ch7-debugging-prestonderek-main.zip
Commit Pseudocode and Output files.HEADmain
Diffstat (limited to 'CST116-Ch7-Debugging')
-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