aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Traver <[email protected]>2022-10-10 15:09:29 -0700
committerJoe Traver <[email protected]>2022-10-10 15:09:29 -0700
commitdf434f64a8e1a4c240bf3a8ad387fd7a08ff60cc (patch)
tree02e2732fe04796984793d2a5484f3b03852a883a
parentConverted raise to decimal equivalant for calculation (diff)
downloadcst116-ch5-debugging-joetraver30-df434f64a8e1a4c240bf3a8ad387fd7a08ff60cc.tar.xz
cst116-ch5-debugging-joetraver30-df434f64a8e1a4c240bf3a8ad387fd7a08ff60cc.zip
Corrected final calculation
-rw-r--r--CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp b/CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp
index 545ebf6..7b90e60 100644
--- a/CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp
+++ b/CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp
@@ -85,7 +85,7 @@ int main()
raise = raise * .01;
- money = money * raise;
+ money = money * (1 + raise);
cout << "After your raise you have $";
cout << money << endl;