diff options
| author | Anibal LopezBonilla <[email protected]> | 2022-10-19 21:19:58 -0700 |
|---|---|---|
| committer | Anibal LopezBonilla <[email protected]> | 2022-10-19 21:19:58 -0700 |
| commit | dc9754fae036b0eb9a52ea3cabc4ef1db6a8775a (patch) | |
| tree | ab43a360e7f64af23bfc7dbd53a558b7ef968b1e | |
| parent | Accidently named the file ch8. Meant to name that ch9 (diff) | |
| download | cst116-ch9-debugging-lopez-bonilla-main.tar.xz cst116-ch9-debugging-lopez-bonilla-main.zip | |
| -rw-r--r-- | Ch9-Debugging Psuedocode.txt | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/Ch9-Debugging Psuedocode.txt b/Ch9-Debugging Psuedocode.txt new file mode 100644 index 0000000..76093de --- /dev/null +++ b/Ch9-Debugging Psuedocode.txt @@ -0,0 +1,38 @@ +Main Program Begins + +integers age and days are introduced. + +age is assigned to the function GetAge + +days is assigned to the function CalcDays + +Function GetAge is introduced + +age variable is introduced in the function GetAge + +A prompt is printed to indicate the user to type their age +User inputs an age + +the new user value of age is returned to the main program + +End of Function GetAge + +Function CalcDays is introduced + +days variable is introduced to the function CalcDays + +days variable is assigned to a calculation(years * Day in a year) + +Result from the days value return to the main function + +Function PrintResulted is introduced + +Print the age of the user + +Print how old they are in days. + +End of Program. + + + + |