diff options
| -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 |