diff options
| author | Musa Ahmed <[email protected]> | 2022-10-19 17:10:23 -0700 |
|---|---|---|
| committer | Musa Ahmed <[email protected]> | 2022-10-19 17:10:23 -0700 |
| commit | 808cb7938115f0d572f03a1047692878ecc9bd2a (patch) | |
| tree | ab4a234cd982d20d0d96e2b30edf38ff584acf8b /CST116-Ch9-Debugging-Ahmed/cst116-ch9-Debugging-Ahmed.txt | |
| parent | Added comments (diff) | |
| download | cst116-ch9-debugging-m005a-808cb7938115f0d572f03a1047692878ecc9bd2a.tar.xz cst116-ch9-debugging-m005a-808cb7938115f0d572f03a1047692878ecc9bd2a.zip | |
Finished (I think)
Diffstat (limited to 'CST116-Ch9-Debugging-Ahmed/cst116-ch9-Debugging-Ahmed.txt')
| -rw-r--r-- | CST116-Ch9-Debugging-Ahmed/cst116-ch9-Debugging-Ahmed.txt | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/CST116-Ch9-Debugging-Ahmed/cst116-ch9-Debugging-Ahmed.txt b/CST116-Ch9-Debugging-Ahmed/cst116-ch9-Debugging-Ahmed.txt deleted file mode 100644 index 1d80833..0000000 --- a/CST116-Ch9-Debugging-Ahmed/cst116-ch9-Debugging-Ahmed.txt +++ /dev/null @@ -1,19 +0,0 @@ -Start Program - -Initialize a constant integer "DAYS_PER_YEAR" to 365 -Initialize a function GetAge() -Initialize a function CalcDays() which passes the age -Initialize a function PrintResults() which passes age and days, both are ints -Initialize the iintegers age and days - -Run the fucntion GetAge() - Prompt the user for their age - Store it into the variable age -Run the function CalcDays(age) - Perform the multiplication of DAYS_PER_YEAR and age - Return the integer days -Store the output from the previous function to the int days -Run th efunction PrintResults(age,days) - print the users age, and tell them how many days old they are - -End Program
\ No newline at end of file |