diff options
Diffstat (limited to 'CST116-Ch7-Debugging/CST116-Ch7-Debugging-Psuedocode.txt')
| -rw-r--r-- | CST116-Ch7-Debugging/CST116-Ch7-Debugging-Psuedocode.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/CST116-Ch7-Debugging/CST116-Ch7-Debugging-Psuedocode.txt b/CST116-Ch7-Debugging/CST116-Ch7-Debugging-Psuedocode.txt new file mode 100644 index 0000000..6b1ba61 --- /dev/null +++ b/CST116-Ch7-Debugging/CST116-Ch7-Debugging-Psuedocode.txt @@ -0,0 +1,12 @@ +Set "Age" to 0 +Ask user for age input +Take user input and compare against "First Birthday" + If age = 1, Print First Birthday +Next compare against "Teenager" + If 12 > age >19, Print Teenager +Next compare against "Child" + If age < 12, Print Child +Next compare against "Senior" + If age > 62, Print Senior +Finally, compare against "Adult" + If 19 < age < 62, Print Adult
\ No newline at end of file |