aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnibal LopezBonilla <[email protected]>2022-10-04 13:56:46 -0700
committerAnibal LopezBonilla <[email protected]>2022-10-04 13:56:46 -0700
commit9cfc4637c59f013d6d7dad24fad4f8407d310ec9 (patch)
tree69ac125048070366f250ad7adf88db90473e10af
parentAgain testing (diff)
downloadcst116-ch5-debugging-buzzerbeaterclutch-9cfc4637c59f013d6d7dad24fad4f8407d310ec9.tar.xz
cst116-ch5-debugging-buzzerbeaterclutch-9cfc4637c59f013d6d7dad24fad4f8407d310ec9.zip
Comment
-rw-r--r--CST116-Ch5-Debugging/CST116-Ch5-Lopez-Bonilla.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/CST116-Ch5-Debugging/CST116-Ch5-Lopez-Bonilla.cpp b/CST116-Ch5-Debugging/CST116-Ch5-Lopez-Bonilla.cpp
index ebb3097..b2f8c06 100644
--- a/CST116-Ch5-Debugging/CST116-Ch5-Lopez-Bonilla.cpp
+++ b/CST116-Ch5-Debugging/CST116-Ch5-Lopez-Bonilla.cpp
@@ -43,6 +43,10 @@
* red. This designates that the variable just changed its value.
* 9) What happened to our money? I thought a raise was supposed
* to increase our money? Stop debugging and fix the calculation.
+*
+* Correct Code
+* raise = money * raise;
+* money = money + raise
*
* Debugging Exercise 3
*