From 5d7daeafe09e3298d3e5ceea04f17b2bde340827 Mon Sep 17 00:00:00 2001 From: Joe Traver Date: Wed, 5 Oct 2022 21:57:19 -0700 Subject: Edited the raise calculation --- Ch 5 Debugging Project/Ch 5 Debugging Project.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Ch 5 Debugging Project/Ch 5 Debugging Project.cpp') 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; -- cgit v1.2.3