From 13e0e9179edcbc536a5d6da2512006892074cea8 Mon Sep 17 00:00:00 2001 From: prestonderek Date: Wed, 12 Oct 2022 21:06:08 -0700 Subject: Commit Pseudocode and Output files. --- .../CST116-Ch7-Debugging-Output-Preston.txt | 17 ++++++++++++++++ .../CST116-Ch7-Debugging-PseudoCode-Preston.txt | 23 ++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 CST116-Ch7-Debugging/CST116-Ch7-Debugging-Output-Preston.txt create mode 100644 CST116-Ch7-Debugging/CST116-Ch7-Debugging-PseudoCode-Preston.txt 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 -- cgit v1.2.3