diff options
Diffstat (limited to 'CST116-Ch9-Debugging/CST116 Pseudo Code Ch9.txt')
| -rw-r--r-- | CST116-Ch9-Debugging/CST116 Pseudo Code Ch9.txt | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/CST116-Ch9-Debugging/CST116 Pseudo Code Ch9.txt b/CST116-Ch9-Debugging/CST116 Pseudo Code Ch9.txt new file mode 100644 index 0000000..19e514c --- /dev/null +++ b/CST116-Ch9-Debugging/CST116 Pseudo Code Ch9.txt @@ -0,0 +1,20 @@ +Under main +set and place age and days as 0 +age is equal to GetAge function +under GetAge +set age +output "please enter your age: " +input age +return age +days is equal to CalcDays(age) +under CalcAge (set years) +set days +days is equal to years*days per year (365) +return days +Printresults(day and age) +under PrintResults +output age with "! Boy are you old!" +new line +output "did you know that you are at least " with days with "days old?" +new line +dont return
\ No newline at end of file |