diff options
| author | Trevor Bouchillon <[email protected]> | 2022-10-16 15:53:17 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-10-16 15:53:17 -0700 |
| commit | a85938e1499ec57eaeee1ca17b5dfcc552ac3217 (patch) | |
| tree | 61bc9af3036db77a0a73c0aa8f54ea2884bddd60 /Pseudocode for Ch9 Debugging.txt | |
| parent | Txt File added (diff) | |
| download | cst116-ch9-debugging-daboochillin-main.tar.xz cst116-ch9-debugging-daboochillin-main.zip | |
Diffstat (limited to 'Pseudocode for Ch9 Debugging.txt')
| -rw-r--r-- | Pseudocode for Ch9 Debugging.txt | 12 |
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?"
|