aboutsummaryrefslogtreecommitdiff
path: root/cst116-Ch7-Pearse-Pseudocode.txt
diff options
context:
space:
mode:
authorTim Pearse <[email protected]>2022-10-12 16:28:21 -0700
committerTim Pearse <[email protected]>2022-10-12 16:28:21 -0700
commitcf82bbd4f5cee0ad0dd71aca77d504296d65ea6b (patch)
tree8cf5941bcd2c393d70c1ebe10b40d7eb0c09a4a8 /cst116-Ch7-Pearse-Pseudocode.txt
parentChange 0 : Uploading gitignore file (diff)
downloadarchived-cst116-ch7-debugging-legokid1503-main.tar.xz
archived-cst116-ch7-debugging-legokid1503-main.zip
Change 1: The debugging, output, and pseudocode.HEADmain
Diffstat (limited to 'cst116-Ch7-Pearse-Pseudocode.txt')
-rw-r--r--cst116-Ch7-Pearse-Pseudocode.txt22
1 files changed, 22 insertions, 0 deletions
diff --git a/cst116-Ch7-Pearse-Pseudocode.txt b/cst116-Ch7-Pearse-Pseudocode.txt
new file mode 100644
index 0000000..c6d3b55
--- /dev/null
+++ b/cst116-Ch7-Pearse-Pseudocode.txt
@@ -0,0 +1,22 @@
+main(){
+ int age
+
+ print("Enter your age:")
+ input(age)
+
+ if (age == 1){
+ print("First Birthday")
+ }
+ elif (age >= 12 && age <= 19){
+ print("Teenager")
+ }
+ elif (age < 12){
+ print("Child")
+ }
+ elif (age > 62){
+ print("Senior")
+ }
+ else{
+ print("Adult")
+ }
+} \ No newline at end of file