From 583dd6067d9a923e9fe00566302ab83707c1830b Mon Sep 17 00:00:00 2001 From: "smithbenjamin2022@gmail.com" Date: Thu, 29 Sep 2022 15:38:09 -0700 Subject: Finito --- Ch 5 Debugging Project/CST116-Debugging-Smith.txt | 3 +++ Ch 5 Debugging Project/CST116-Lab0-pseudo-code.txt | 6 ++++++ Ch 5 Debugging Project/Ch 5 Debugging Project.cpp | 19 ++++++++++++++++--- .../Debug/Ch 5 Deb.57683855.tlog/CL.command.1.tlog | Bin 0 -> 970 bytes .../x64/Debug/Ch 5 Deb.57683855.tlog/CL.read.1.tlog | Bin 0 -> 20388 bytes .../x64/Debug/Ch 5 Deb.57683855.tlog/CL.write.1.tlog | Bin 0 -> 900 bytes .../Ch 5 Debugging Project.lastbuildstate | 2 ++ .../Debug/Ch 5 Deb.57683855.tlog/link.command.1.tlog | Bin 0 -> 1816 bytes .../Debug/Ch 5 Deb.57683855.tlog/link.read.1.tlog | Bin 0 -> 3674 bytes .../Debug/Ch 5 Deb.57683855.tlog/link.write.1.tlog | Bin 0 -> 988 bytes .../x64/Debug/Ch 5 Debugging Project.exe | Bin 0 -> 72704 bytes .../x64/Debug/Ch 5 Debugging Project.exe.recipe | 11 +++++++++++ .../x64/Debug/Ch 5 Debugging Project.ilk | Bin 0 -> 790896 bytes .../x64/Debug/Ch 5 Debugging Project.log | 2 ++ .../x64/Debug/Ch 5 Debugging Project.obj | Bin 0 -> 90732 bytes .../x64/Debug/Ch 5 Debugging Project.pdb | Bin 0 -> 1601536 bytes ... 5 Debugging Project.vcxproj.FileListAbsolute.txt | 1 + .../x64/Debug/ch 5 debugging project.obj.enc | Bin 0 -> 90718 bytes Ch 5 Debugging Project/x64/Debug/vc143.idb | Bin 0 -> 166912 bytes Ch 5 Debugging Project/x64/Debug/vc143.pdb | Bin 0 -> 462848 bytes 20 files changed, 41 insertions(+), 3 deletions(-) create mode 100644 Ch 5 Debugging Project/CST116-Debugging-Smith.txt create mode 100644 Ch 5 Debugging Project/CST116-Lab0-pseudo-code.txt create mode 100644 Ch 5 Debugging Project/x64/Debug/Ch 5 Deb.57683855.tlog/CL.command.1.tlog create mode 100644 Ch 5 Debugging Project/x64/Debug/Ch 5 Deb.57683855.tlog/CL.read.1.tlog create mode 100644 Ch 5 Debugging Project/x64/Debug/Ch 5 Deb.57683855.tlog/CL.write.1.tlog create mode 100644 Ch 5 Debugging Project/x64/Debug/Ch 5 Deb.57683855.tlog/Ch 5 Debugging Project.lastbuildstate create mode 100644 Ch 5 Debugging Project/x64/Debug/Ch 5 Deb.57683855.tlog/link.command.1.tlog create mode 100644 Ch 5 Debugging Project/x64/Debug/Ch 5 Deb.57683855.tlog/link.read.1.tlog create mode 100644 Ch 5 Debugging Project/x64/Debug/Ch 5 Deb.57683855.tlog/link.write.1.tlog create mode 100644 Ch 5 Debugging Project/x64/Debug/Ch 5 Debugging Project.exe create mode 100644 Ch 5 Debugging Project/x64/Debug/Ch 5 Debugging Project.exe.recipe create mode 100644 Ch 5 Debugging Project/x64/Debug/Ch 5 Debugging Project.ilk create mode 100644 Ch 5 Debugging Project/x64/Debug/Ch 5 Debugging Project.log create mode 100644 Ch 5 Debugging Project/x64/Debug/Ch 5 Debugging Project.obj create mode 100644 Ch 5 Debugging Project/x64/Debug/Ch 5 Debugging Project.pdb create mode 100644 Ch 5 Debugging Project/x64/Debug/Ch 5 Debugging Project.vcxproj.FileListAbsolute.txt create mode 100644 Ch 5 Debugging Project/x64/Debug/ch 5 debugging project.obj.enc create mode 100644 Ch 5 Debugging Project/x64/Debug/vc143.idb create mode 100644 Ch 5 Debugging Project/x64/Debug/vc143.pdb (limited to 'Ch 5 Debugging Project') diff --git a/Ch 5 Debugging Project/CST116-Debugging-Smith.txt b/Ch 5 Debugging Project/CST116-Debugging-Smith.txt new file mode 100644 index 0000000..2735c95 --- /dev/null +++ b/Ch 5 Debugging Project/CST116-Debugging-Smith.txt @@ -0,0 +1,3 @@ +You have $123.45 +Enter percent raise: .1 +After your raise you have $135.795 \ No newline at end of file diff --git a/Ch 5 Debugging Project/CST116-Lab0-pseudo-code.txt b/Ch 5 Debugging Project/CST116-Lab0-pseudo-code.txt new file mode 100644 index 0000000..257d12b --- /dev/null +++ b/Ch 5 Debugging Project/CST116-Lab0-pseudo-code.txt @@ -0,0 +1,6 @@ +1. Create the float variable "money" and set its value to 123.45 +2. Create the float value "raise" +3. Output how much money the variable "money" +4. Ask the user for the percent raise they wish to set and set their input to the variable "raise" +5. Add the value of "money" * "raise" to the initial value of "money" +6. Output the new value of the variable "money" \ No newline at end of file diff --git a/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp b/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp index 6545e9b..469a1f6 100644 --- a/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp +++ b/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp @@ -1,4 +1,14 @@ /******************************************************************** +* Benjamin Smith +* CST116 + +Lab #0 + +IDE, Simple Program, GitHub +* +* +* +* * File: Chap_5_Debugging.cpp * * General Instructions: Complete each step before proceeding to the @@ -16,6 +26,7 @@ * 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? +* --> This is the source code behind certain commands * 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. @@ -37,8 +48,10 @@ * 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? + --> 123.449997 +* 7) Hover your mouse pointer over raise. What is its value? + --> .100000001 * 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 +89,7 @@ int main() cout << "Enter percent raise: "; cin >> raise; - money = money * raise; + money += money * raise; cout << "After your raise you have $"; cout << money << endl; diff --git a/Ch 5 Debugging Project/x64/Debug/Ch 5 Deb.57683855.tlog/CL.command.1.tlog b/Ch 5 Debugging Project/x64/Debug/Ch 5 Deb.57683855.tlog/CL.command.1.tlog new file mode 100644 index 0000000..4766429 Binary files /dev/null and b/Ch 5 Debugging Project/x64/Debug/Ch 5 Deb.57683855.tlog/CL.command.1.tlog differ diff --git a/Ch 5 Debugging Project/x64/Debug/Ch 5 Deb.57683855.tlog/CL.read.1.tlog b/Ch 5 Debugging Project/x64/Debug/Ch 5 Deb.57683855.tlog/CL.read.1.tlog new file mode 100644 index 0000000..5f1b9c2 Binary files /dev/null and b/Ch 5 Debugging Project/x64/Debug/Ch 5 Deb.57683855.tlog/CL.read.1.tlog differ diff --git a/Ch 5 Debugging Project/x64/Debug/Ch 5 Deb.57683855.tlog/CL.write.1.tlog b/Ch 5 Debugging Project/x64/Debug/Ch 5 Deb.57683855.tlog/CL.write.1.tlog new file mode 100644 index 0000000..fc431fe Binary files /dev/null and b/Ch 5 Debugging Project/x64/Debug/Ch 5 Deb.57683855.tlog/CL.write.1.tlog differ diff --git a/Ch 5 Debugging Project/x64/Debug/Ch 5 Deb.57683855.tlog/Ch 5 Debugging Project.lastbuildstate b/Ch 5 Debugging Project/x64/Debug/Ch 5 Deb.57683855.tlog/Ch 5 Debugging Project.lastbuildstate new file mode 100644 index 0000000..8b09b49 --- /dev/null +++ b/Ch 5 Debugging Project/x64/Debug/Ch 5 Deb.57683855.tlog/Ch 5 Debugging Project.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v143:VCToolArchitecture=Native64Bit:VCToolsVersion=14.33.31629:TargetPlatformVersion=10.0.19041.0: +Debug|x64|C:\Users\cowpi\OneDrive\Documents\Visual Studio 2022\Homework\Ch 5 Debugging Project\| diff --git a/Ch 5 Debugging Project/x64/Debug/Ch 5 Deb.57683855.tlog/link.command.1.tlog b/Ch 5 Debugging Project/x64/Debug/Ch 5 Deb.57683855.tlog/link.command.1.tlog new file mode 100644 index 0000000..098d981 Binary files /dev/null and b/Ch 5 Debugging Project/x64/Debug/Ch 5 Deb.57683855.tlog/link.command.1.tlog differ diff --git a/Ch 5 Debugging Project/x64/Debug/Ch 5 Deb.57683855.tlog/link.read.1.tlog b/Ch 5 Debugging Project/x64/Debug/Ch 5 Deb.57683855.tlog/link.read.1.tlog new file mode 100644 index 0000000..836cb21 Binary files /dev/null and b/Ch 5 Debugging Project/x64/Debug/Ch 5 Deb.57683855.tlog/link.read.1.tlog differ diff --git a/Ch 5 Debugging Project/x64/Debug/Ch 5 Deb.57683855.tlog/link.write.1.tlog b/Ch 5 Debugging Project/x64/Debug/Ch 5 Deb.57683855.tlog/link.write.1.tlog new file mode 100644 index 0000000..bf3e417 Binary files /dev/null and b/Ch 5 Debugging Project/x64/Debug/Ch 5 Deb.57683855.tlog/link.write.1.tlog differ diff --git a/Ch 5 Debugging Project/x64/Debug/Ch 5 Debugging Project.exe b/Ch 5 Debugging Project/x64/Debug/Ch 5 Debugging Project.exe new file mode 100644 index 0000000..9c3a8e9 Binary files /dev/null and b/Ch 5 Debugging Project/x64/Debug/Ch 5 Debugging Project.exe differ diff --git a/Ch 5 Debugging Project/x64/Debug/Ch 5 Debugging Project.exe.recipe b/Ch 5 Debugging Project/x64/Debug/Ch 5 Debugging Project.exe.recipe new file mode 100644 index 0000000..14f87f5 --- /dev/null +++ b/Ch 5 Debugging Project/x64/Debug/Ch 5 Debugging Project.exe.recipe @@ -0,0 +1,11 @@ + + + + + C:\Users\cowpi\OneDrive\Documents\Visual Studio 2022\Homework\Ch 5 Debugging Project\x64\Debug\Ch 5 Debugging Project.exe + + + + + + \ No newline at end of file diff --git a/Ch 5 Debugging Project/x64/Debug/Ch 5 Debugging Project.ilk b/Ch 5 Debugging Project/x64/Debug/Ch 5 Debugging Project.ilk new file mode 100644 index 0000000..13694f7 Binary files /dev/null and b/Ch 5 Debugging Project/x64/Debug/Ch 5 Debugging Project.ilk differ diff --git a/Ch 5 Debugging Project/x64/Debug/Ch 5 Debugging Project.log b/Ch 5 Debugging Project/x64/Debug/Ch 5 Debugging Project.log new file mode 100644 index 0000000..c1a6d68 --- /dev/null +++ b/Ch 5 Debugging Project/x64/Debug/Ch 5 Debugging Project.log @@ -0,0 +1,2 @@ + Ch 5 Debugging Project.cpp + Ch 5 Debugging Project.vcxproj -> C:\Users\cowpi\OneDrive\Documents\Visual Studio 2022\Homework\Ch 5 Debugging Project\x64\Debug\Ch 5 Debugging Project.exe diff --git a/Ch 5 Debugging Project/x64/Debug/Ch 5 Debugging Project.obj b/Ch 5 Debugging Project/x64/Debug/Ch 5 Debugging Project.obj new file mode 100644 index 0000000..3dd7794 Binary files /dev/null and b/Ch 5 Debugging Project/x64/Debug/Ch 5 Debugging Project.obj differ diff --git a/Ch 5 Debugging Project/x64/Debug/Ch 5 Debugging Project.pdb b/Ch 5 Debugging Project/x64/Debug/Ch 5 Debugging Project.pdb new file mode 100644 index 0000000..ff7e9f8 Binary files /dev/null and b/Ch 5 Debugging Project/x64/Debug/Ch 5 Debugging Project.pdb differ diff --git a/Ch 5 Debugging Project/x64/Debug/Ch 5 Debugging Project.vcxproj.FileListAbsolute.txt b/Ch 5 Debugging Project/x64/Debug/Ch 5 Debugging Project.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..0a7e2b4 --- /dev/null +++ b/Ch 5 Debugging Project/x64/Debug/Ch 5 Debugging Project.vcxproj.FileListAbsolute.txt @@ -0,0 +1 @@ +C:\Users\cowpi\OneDrive\Documents\Visual Studio 2022\Homework\Ch 5 Debugging Project\x64\Debug\Ch 5 Debugging Project.exe diff --git a/Ch 5 Debugging Project/x64/Debug/ch 5 debugging project.obj.enc b/Ch 5 Debugging Project/x64/Debug/ch 5 debugging project.obj.enc new file mode 100644 index 0000000..4e24419 Binary files /dev/null and b/Ch 5 Debugging Project/x64/Debug/ch 5 debugging project.obj.enc differ diff --git a/Ch 5 Debugging Project/x64/Debug/vc143.idb b/Ch 5 Debugging Project/x64/Debug/vc143.idb new file mode 100644 index 0000000..3fac93a Binary files /dev/null and b/Ch 5 Debugging Project/x64/Debug/vc143.idb differ diff --git a/Ch 5 Debugging Project/x64/Debug/vc143.pdb b/Ch 5 Debugging Project/x64/Debug/vc143.pdb new file mode 100644 index 0000000..69c4ee1 Binary files /dev/null and b/Ch 5 Debugging Project/x64/Debug/vc143.pdb differ -- cgit v1.2.3