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-PseudoCode-Preston.txt | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 CST116-Ch7-Debugging/CST116-Ch7-Debugging-PseudoCode-Preston.txt (limited to 'CST116-Ch7-Debugging/CST116-Ch7-Debugging-PseudoCode-Preston.txt') 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