diff options
| author | Wyatt <[email protected]> | 2022-10-18 21:38:08 -0700 |
|---|---|---|
| committer | Wyatt <[email protected]> | 2022-10-18 21:38:08 -0700 |
| commit | 6f38db0180b9d4d6b95024f2d6ffe7a513128d10 (patch) | |
| tree | cbb11c9866e8948f61caee6c69d7a797dd83e821 /CST116-Ch9-Debugging/CST116-Ch9-Debugging-psuedocode.txt | |
| parent | finished (diff) | |
| download | cst116-ch9-debugging-johnson-6f38db0180b9d4d6b95024f2d6ffe7a513128d10.tar.xz cst116-ch9-debugging-johnson-6f38db0180b9d4d6b95024f2d6ffe7a513128d10.zip | |
Diffstat (limited to 'CST116-Ch9-Debugging/CST116-Ch9-Debugging-psuedocode.txt')
| -rw-r--r-- | CST116-Ch9-Debugging/CST116-Ch9-Debugging-psuedocode.txt | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/CST116-Ch9-Debugging/CST116-Ch9-Debugging-psuedocode.txt b/CST116-Ch9-Debugging/CST116-Ch9-Debugging-psuedocode.txt new file mode 100644 index 0000000..4dc015d --- /dev/null +++ b/CST116-Ch9-Debugging/CST116-Ch9-Debugging-psuedocode.txt @@ -0,0 +1,32 @@ +Constant DAYS_PER_YEAR = 365 + +int age, days + +age = GetAge() + +GetAge +{ +int age +ask user for age +set age to user input + +return age +} + +days = CalcDays(age) + + +CalcDays(int years) +{ +int days +days = years*DAYS_PER_YEAR +return days; +} + +PrintResults(days, age) + +PrintResults(int days, int age) +{ +print out age, +print out days. +}
\ No newline at end of file |