From 696633c89da882e8d652b178bc6f40a5df33d8af Mon Sep 17 00:00:00 2001 From: Morgan Cyrus Date: Wed, 12 Oct 2022 20:47:03 -0700 Subject: Created text files. --- CST116-Ch7-Debugging/CST116-CH7-Cyrus-pseudo-code.txt | 15 +++++++++++++++ CST116-Ch7-Debugging/CST116-CH7-Cyrus.txt | 8 ++++++++ 2 files changed, 23 insertions(+) create mode 100644 CST116-Ch7-Debugging/CST116-CH7-Cyrus-pseudo-code.txt create mode 100644 CST116-Ch7-Debugging/CST116-CH7-Cyrus.txt (limited to 'CST116-Ch7-Debugging') 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 -- cgit v1.2.3