aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CST116-Lab0-Debugging-Lopez-Bonilla/CST116-Lab0-Debugging-Lopez-Bonilla.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/CST116-Lab0-Debugging-Lopez-Bonilla/CST116-Lab0-Debugging-Lopez-Bonilla.cpp b/CST116-Lab0-Debugging-Lopez-Bonilla/CST116-Lab0-Debugging-Lopez-Bonilla.cpp
index b7290b8..091e8c4 100644
--- a/CST116-Lab0-Debugging-Lopez-Bonilla/CST116-Lab0-Debugging-Lopez-Bonilla.cpp
+++ b/CST116-Lab0-Debugging-Lopez-Bonilla/CST116-Lab0-Debugging-Lopez-Bonilla.cpp
@@ -42,6 +42,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.
+*
+* Corrected Code
+* raise = money * raise;
+* money = money + raise;
*
* Debugging Exercise 3
*