diff options
| author | Morgan Cyrus <[email protected]> | 2022-10-19 19:51:45 -0700 |
|---|---|---|
| committer | Morgan Cyrus <[email protected]> | 2022-10-19 19:51:45 -0700 |
| commit | 254c5281a27c04a017209f44008a5cc762b9b427 (patch) | |
| tree | a91feae3609b9de754f8f46cebed8a29ae8bc0e3 /CST116-Ch9-Debugging/CST116-CH9-pseudo-code-Cyrus.txt | |
| parent | Exercise 3 complete. (diff) | |
| download | cst116-ch9-debugging-radioflyer32-main.tar.xz cst116-ch9-debugging-radioflyer32-main.zip | |
Diffstat (limited to 'CST116-Ch9-Debugging/CST116-CH9-pseudo-code-Cyrus.txt')
| -rw-r--r-- | CST116-Ch9-Debugging/CST116-CH9-pseudo-code-Cyrus.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/CST116-Ch9-Debugging/CST116-CH9-pseudo-code-Cyrus.txt b/CST116-Ch9-Debugging/CST116-CH9-pseudo-code-Cyrus.txt new file mode 100644 index 0000000..aaa5bf1 --- /dev/null +++ b/CST116-Ch9-Debugging/CST116-CH9-pseudo-code-Cyrus.txt @@ -0,0 +1,11 @@ +declare int age and assign 0 +declare int days and assign 0 + +assign age the value calculated by the getAge function + getAge takes the value provided by the user and returns it + +assign days the value calculated by the calcDays function using age as a passed in variable for the calculation + calcDays takes the value passed in (age) and creates a local variable (days) which it then assigns the value of (age * DAYS_PER_YEAR). + calcDays returns this value + +using the PrintResults function, tell the user their age in years, and the number of days this is equivalent to which was calculated in calcDays.
\ No newline at end of file |