diff options
| -rw-r--r-- | CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp b/CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp index 851932d..50d04b4 100644 --- a/CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp +++ b/CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp @@ -37,8 +37,8 @@ * 4) Enter the value .1 and press enter.
* 5) Notice that the current line of execution is now at the
* calculation.
-* 6) Look at your watch. What is the value of money?
-* 7) Hover your mouse pointer over raise. What is its value?
+* 6) Look at your watch. What is the value of money?
+* 7) Hover your mouse pointer over raise. What is its value? $12.345
* 8) Step over the calculation. Notice the watch on money is now
* red. This designates that the variable just changed its value.
* 9) What happened to our money? I thought a raise was supposed
@@ -76,7 +76,7 @@ int main() cout << "Enter percent raise: ";
cin >> raise;
- money = money * raise;
+ money = money + (money * raise);
cout << "After your raise you have $";
cout << money << endl;
|