diff options
| author | TheOtherTonyStark <[email protected]> | 2022-10-16 14:43:17 -0700 |
|---|---|---|
| committer | TheOtherTonyStark <[email protected]> | 2022-10-16 14:43:17 -0700 |
| commit | 15357aa787b55279a9b98c702d57156802b7f973 (patch) | |
| tree | 7938345f229d65ed2e6528001340ac0c4de154e3 | |
| parent | Fourth Commit (diff) | |
| download | cst116-ch9-debugging-theothertonystark-15357aa787b55279a9b98c702d57156802b7f973.tar.xz cst116-ch9-debugging-theothertonystark-15357aa787b55279a9b98c702d57156802b7f973.zip | |
| -rw-r--r-- | CST116-Ch9-Debugging/CST116-Ch9-Debugging-Chambers.cpp | 2 | ||||
| -rw-r--r-- | CST116-Ch9-Debugging/CST116-Ch9-Debugging-Pseudocode.txt | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/CST116-Ch9-Debugging/CST116-Ch9-Debugging-Chambers.cpp b/CST116-Ch9-Debugging/CST116-Ch9-Debugging-Chambers.cpp index ddabfe4..7ba503c 100644 --- a/CST116-Ch9-Debugging/CST116-Ch9-Debugging-Chambers.cpp +++ b/CST116-Ch9-Debugging/CST116-Ch9-Debugging-Chambers.cpp @@ -87,7 +87,7 @@ int main() // Breakpoint 2 // Put breakpoint on the following line - PrintResults(age, days); + PrintResults(age, days); return age; } diff --git a/CST116-Ch9-Debugging/CST116-Ch9-Debugging-Pseudocode.txt b/CST116-Ch9-Debugging/CST116-Ch9-Debugging-Pseudocode.txt index e69de29..a22c030 100644 --- a/CST116-Ch9-Debugging/CST116-Ch9-Debugging-Pseudocode.txt +++ b/CST116-Ch9-Debugging/CST116-Ch9-Debugging-Pseudocode.txt @@ -0,0 +1,11 @@ +Set constant int for DAYS_PER_YEAR + 365 days per year +Set int for the rest of your variables + GetAge(),CalcDays(int age), age, days +Set void for Printresults +Create Main function + Set GetAge() for your main, as well as connections to later functions +Create functions for other variables + Need one for GetAge(), and CalcDays(int age) +Print result + Include statements "Boy are you old", as well giving an count of the age given in days instead.
\ No newline at end of file |