diff options
| -rw-r--r-- | CST116-Ch7-Debugging/CST116-CH7-Cyrus-pseudo-code.txt | 15 | ||||
| -rw-r--r-- | CST116-Ch7-Debugging/CST116-CH7-Cyrus.txt | 8 |
2 files changed, 23 insertions, 0 deletions
diff --git a/CST116-Ch7-Debugging/CST116-CH7-Cyrus-pseudo-code.txt b/CST116-Ch7-Debugging/CST116-CH7-Cyrus-pseudo-code.txt new file mode 100644 index 0000000..b84a4e9 --- /dev/null +++ b/CST116-Ch7-Debugging/CST116-CH7-Cyrus-pseudo-code.txt @@ -0,0 +1,15 @@ +set int age to be 0; +print "Enter your age: "; +set age to be the input value; + +if age is 1, print "First Birthday" and create a new line; + +otherwise, if age is greater than or eqal to 12, AND age is less than or equal to 19, print "Teenager" and create a new line; + +otherwise, if age is less than 12, print "Child" and create a new line; + +otherwise if age is greater than 62, print "Senior" and create a new line; + +and if none of the others are true, print "Adult", and create a new line; + +end
\ No newline at end of file diff --git a/CST116-Ch7-Debugging/CST116-CH7-Cyrus.txt b/CST116-Ch7-Debugging/CST116-CH7-Cyrus.txt new file mode 100644 index 0000000..4ca8dbc --- /dev/null +++ b/CST116-Ch7-Debugging/CST116-CH7-Cyrus.txt @@ -0,0 +1,8 @@ +Enter your age: 25 +Adult + +C:\Users\Morgan\Source\Repos\cst116-ch7-debugging-radioflyer32\CST116-Ch7-Debugging\Debug\CST116-Ch7-Debugging.exe (process 19984) exited with code 0. +Press any key to close this window . . . + +Enter your age: 10 +Child |