diff options
| author | jacobdw22 <[email protected]> | 2022-10-17 16:59:14 -0700 |
|---|---|---|
| committer | jacobdw22 <[email protected]> | 2022-10-17 16:59:14 -0700 |
| commit | 2270794826cd0fa929986678fdb827e212a4fb18 (patch) | |
| tree | 815e74b5508feb8165f9fcdfb771376922dbdbd1 | |
| parent | simple changes (diff) | |
| download | cst116-ch9-debugging-jacobdw22-2270794826cd0fa929986678fdb827e212a4fb18.tar.xz cst116-ch9-debugging-jacobdw22-2270794826cd0fa929986678fdb827e212a4fb18.zip | |
Final Changes
| -rw-r--r-- | cst116-ch9-debugging-wilson-pseudo-code.txt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/cst116-ch9-debugging-wilson-pseudo-code.txt b/cst116-ch9-debugging-wilson-pseudo-code.txt new file mode 100644 index 0000000..dbcbfe1 --- /dev/null +++ b/cst116-ch9-debugging-wilson-pseudo-code.txt @@ -0,0 +1,18 @@ +SET age = 0 +SET days = 0 +SET age = GetAge function +SET days = CalcDays function +PRINT age and days + +DEFINE int age within GetAge function +DISPLAY "Please enter your age: " +READ age +RETURN age + +DEFINE int days +days = years * DAYS_PER_YEAR +RETURN days + +PRINTRESULTS int age and int days +DISPLAY age "! Boy are you old!" +DISPLAY "Did you know that you are at least " days " days old?"
\ No newline at end of file |