diff options
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 |