diff options
Diffstat (limited to 'CST116-Ch7-Debugging/CST116-CH7-Smith-Pseudo-Code.txt')
| -rw-r--r-- | CST116-Ch7-Debugging/CST116-CH7-Smith-Pseudo-Code.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/CST116-Ch7-Debugging/CST116-CH7-Smith-Pseudo-Code.txt b/CST116-Ch7-Debugging/CST116-CH7-Smith-Pseudo-Code.txt new file mode 100644 index 0000000..e7ffd50 --- /dev/null +++ b/CST116-Ch7-Debugging/CST116-CH7-Smith-Pseudo-Code.txt @@ -0,0 +1,7 @@ +1) Initialize a new int 'age' to be 0 +2) Get the user's age +3) If their age is 1, output "First Birthday" +4) If their age is between 12 and 19, output "Teenager" +5) If their age is less than 12, output "Child" +6) If their age is greater than 62, output "Senior" +7) If their age doesn't meet any prior requirements, output "Adult"
\ No newline at end of file |