aboutsummaryrefslogtreecommitdiff
path: root/CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp
diff options
context:
space:
mode:
authorNathanturcas <[email protected]>2022-10-20 22:24:07 -0700
committerNathanturcas <[email protected]>2022-10-20 22:24:07 -0700
commitfaac582eeaf57d0e50f41d5d40995846742c1ade (patch)
treeee929400d72524fca1773db55e060469d59c21f1 /CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp
parentfirst commit. (diff)
downloadcst116-ch5-debugging-nathanturcas-faac582eeaf57d0e50f41d5d40995846742c1ade.tar.xz
cst116-ch5-debugging-nathanturcas-faac582eeaf57d0e50f41d5d40995846742c1ade.zip
commit. 3HEADmain
Diffstat (limited to 'CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp')
-rw-r--r--CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp6
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;