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 --- .../CST116-Lab0-Traver-Pseudo-Code | 3 +-- Ch 5 Debugging Project/Ch 5 Debugging Project.cpp | 7 ++++++- .../Debug/Ch 5 Deb.57683855.tlog/link.read.1.tlog | Bin 7082 -> 7306 bytes .../Debug/Ch 5 Debugging Project.exe | Bin 54272 -> 54272 bytes .../Debug/Ch 5 Debugging Project.ilk | Bin 534704 -> 544104 bytes .../Debug/Ch 5 Debugging Project.obj | Bin 84749 -> 85097 bytes .../Debug/Ch 5 Debugging Project.pdb | Bin 2093056 -> 2134016 bytes Ch 5 Debugging Project/Debug/vc143.idb | Bin 175104 -> 175104 bytes Ch 5 Debugging Project/Debug/vc143.pdb | Bin 462848 -> 462848 bytes 9 files changed, 7 insertions(+), 3 deletions(-) (limited to 'Ch 5 Debugging Project') diff --git a/Ch 5 Debugging Project/CST116-Lab0-Traver-Pseudo-Code b/Ch 5 Debugging Project/CST116-Lab0-Traver-Pseudo-Code index 5c93e8b..a0d0e52 100644 --- a/Ch 5 Debugging Project/CST116-Lab0-Traver-Pseudo-Code +++ b/Ch 5 Debugging Project/CST116-Lab0-Traver-Pseudo-Code @@ -17,5 +17,4 @@ money = money * raise print: "After your raise you have $" - -output = money + output = money 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; diff --git a/Ch 5 Debugging Project/Debug/Ch 5 Deb.57683855.tlog/link.read.1.tlog b/Ch 5 Debugging Project/Debug/Ch 5 Deb.57683855.tlog/link.read.1.tlog index 486e80a..d1bd811 100644 Binary files a/Ch 5 Debugging Project/Debug/Ch 5 Deb.57683855.tlog/link.read.1.tlog and b/Ch 5 Debugging Project/Debug/Ch 5 Deb.57683855.tlog/link.read.1.tlog differ diff --git a/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.exe b/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.exe index 0224882..7997b6b 100644 Binary files a/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.exe and b/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.exe differ diff --git a/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.ilk b/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.ilk index 72184e1..1837a1d 100644 Binary files a/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.ilk and b/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.ilk differ diff --git a/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.obj b/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.obj index 21dc9fd..e793c68 100644 Binary files a/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.obj and b/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.obj differ diff --git a/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.pdb b/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.pdb index 381a37f..170c1e9 100644 Binary files a/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.pdb and b/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.pdb differ diff --git a/Ch 5 Debugging Project/Debug/vc143.idb b/Ch 5 Debugging Project/Debug/vc143.idb index 5f974ec..3ff66d2 100644 Binary files a/Ch 5 Debugging Project/Debug/vc143.idb and b/Ch 5 Debugging Project/Debug/vc143.idb differ diff --git a/Ch 5 Debugging Project/Debug/vc143.pdb b/Ch 5 Debugging Project/Debug/vc143.pdb index 2799a90..62456f4 100644 Binary files a/Ch 5 Debugging Project/Debug/vc143.pdb and b/Ch 5 Debugging Project/Debug/vc143.pdb differ -- cgit v1.2.3