aboutsummaryrefslogtreecommitdiff
path: root/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp
diff options
context:
space:
mode:
authorJoe Traver <[email protected]>2022-10-05 21:57:19 -0700
committerJoe Traver <[email protected]>2022-10-05 21:57:19 -0700
commit5d7daeafe09e3298d3e5ceea04f17b2bde340827 (patch)
tree5ad51cb3f7f062fb0a5016a6b6aa5a1d03bbebf3 /Ch 5 Debugging Project/Ch 5 Debugging Project.cpp
parentFinal Psuedo Code (diff)
downloadcst116-lab0-debugging-joetraver30-5d7daeafe09e3298d3e5ceea04f17b2bde340827.tar.xz
cst116-lab0-debugging-joetraver30-5d7daeafe09e3298d3e5ceea04f17b2bde340827.zip
Edited the raise calculation
Diffstat (limited to 'Ch 5 Debugging Project/Ch 5 Debugging Project.cpp')
-rw-r--r--Ch 5 Debugging Project/Ch 5 Debugging Project.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp b/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp
index 2971ee8..155ec35 100644
--- a/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp
+++ b/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp
@@ -18,6 +18,9 @@
* the current line being that cout statement, Step Into again.
* 6) What happened? Where are we now? What is all of this nasty
* looking code?
+*
+* -Background code routine that will execute the display-
+*
* 7) Remember, stepping into a predefined routine takes you to the
* code for that routine. If the debugger can't find the code it
* will show the assembly code for that routine.
@@ -83,7 +86,9 @@ int main()
cout << "Enter percent raise: ";
cin >> raise;
- money = money * raise;
+ raise = raise * .01;
+
+ money = money * (1+raise);
cout << "After your raise you have $";
cout << money << endl;