aboutsummaryrefslogtreecommitdiff
path: root/Pseudocode for Ch9 Debugging.txt
diff options
context:
space:
mode:
authorTrevor Bouchillon <[email protected]>2022-10-16 15:53:17 -0700
committerGitHub <[email protected]>2022-10-16 15:53:17 -0700
commita85938e1499ec57eaeee1ca17b5dfcc552ac3217 (patch)
tree61bc9af3036db77a0a73c0aa8f54ea2884bddd60 /Pseudocode for Ch9 Debugging.txt
parentTxt File added (diff)
downloadcst116-ch9-debugging-daboochillin-main.tar.xz
cst116-ch9-debugging-daboochillin-main.zip
Add files via uploadHEADmain
Diffstat (limited to 'Pseudocode for Ch9 Debugging.txt')
-rw-r--r--Pseudocode for Ch9 Debugging.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/Pseudocode for Ch9 Debugging.txt b/Pseudocode for Ch9 Debugging.txt
new file mode 100644
index 0000000..745a723
--- /dev/null
+++ b/Pseudocode for Ch9 Debugging.txt
@@ -0,0 +1,12 @@
+Define function getage
+display "Please enter your age: "
+store input into variable age
+
+define days as output from function calcdays
+move to function calcdays
+define variable days as an integer
+set days equal to years * days in a year (365)
+
+move to function print results
+display age and "! Boy you are old!"
+display "Did you know that you are at least ", days, " days old?"