diff options
| author | Joe Traver <[email protected]> | 2022-10-10 15:09:29 -0700 |
|---|---|---|
| committer | Joe Traver <[email protected]> | 2022-10-10 15:09:29 -0700 |
| commit | df434f64a8e1a4c240bf3a8ad387fd7a08ff60cc (patch) | |
| tree | 02e2732fe04796984793d2a5484f3b03852a883a /CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp | |
| parent | Converted raise to decimal equivalant for calculation (diff) | |
| download | cst116-ch5-debugging-joetraver30-df434f64a8e1a4c240bf3a8ad387fd7a08ff60cc.tar.xz cst116-ch5-debugging-joetraver30-df434f64a8e1a4c240bf3a8ad387fd7a08ff60cc.zip | |
Corrected final calculation
Diffstat (limited to 'CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp')
| -rw-r--r-- | CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp | 2 |
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;
|