From df434f64a8e1a4c240bf3a8ad387fd7a08ff60cc Mon Sep 17 00:00:00 2001 From: Joe Traver Date: Mon, 10 Oct 2022 15:09:29 -0700 Subject: Corrected final calculation --- CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp') 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; -- cgit v1.2.3