diff options
| author | Nathanturcas <[email protected]> | 2022-10-20 22:24:07 -0700 |
|---|---|---|
| committer | Nathanturcas <[email protected]> | 2022-10-20 22:24:07 -0700 |
| commit | faac582eeaf57d0e50f41d5d40995846742c1ade (patch) | |
| tree | ee929400d72524fca1773db55e060469d59c21f1 | |
| parent | first commit. (diff) | |
| download | cst116-ch5-debugging-nathanturcas-main.tar.xz cst116-ch5-debugging-nathanturcas-main.zip | |
| -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;
|