aboutsummaryrefslogtreecommitdiff
path: root/cst116-Ch7-Pearse-Pseudocode.txt
diff options
context:
space:
mode:
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