aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp b/CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp
index 851932d..35b0e1c 100644
--- a/CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp
+++ b/CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp
@@ -73,10 +73,10 @@ int main()
// Breakpoint 1
// Put a breakpoint on the following line
- cout << "Enter percent raise: ";
+ cout << "Enter PERCENT raise: ";
cin >> raise;
- money = money * raise;
+ money = money * (raise * .01 + 1);
cout << "After your raise you have $";
cout << money << endl;