aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMusa Ahmed <[email protected]>2022-09-29 16:30:27 -0700
committerMusa Ahmed <[email protected]>2022-09-29 16:30:27 -0700
commit25131d257efdcf5a17bca0d81a711043cbe9f60b (patch)
treedeb268a4fac385c07256af281ed338403fee99a8
parentadded output (diff)
downloadcst116-lab0-debugging-m005a-25131d257efdcf5a17bca0d81a711043cbe9f60b.tar.xz
cst116-lab0-debugging-m005a-25131d257efdcf5a17bca0d81a711043cbe9f60b.zip
answered the questions
-rw-r--r--Ch 5 Debugging Project/CST11116-Lab0-Ahmed.txt (renamed from Ch 5 Debugging Project/CST11116-Lab0-Ahmed)0
-rw-r--r--Ch 5 Debugging Project/Ch 5 Debugging Project.cpp13
-rw-r--r--Ch 5 Debugging Project/Ch 5 Debugging Project.vcxproj2
-rw-r--r--Ch 5 Debugging Project/Ch 5 Debugging Project.vcxproj.filters2
4 files changed, 14 insertions, 3 deletions
diff --git a/Ch 5 Debugging Project/CST11116-Lab0-Ahmed b/Ch 5 Debugging Project/CST11116-Lab0-Ahmed.txt
index 9709ae9..9709ae9 100644
--- a/Ch 5 Debugging Project/CST11116-Lab0-Ahmed
+++ b/Ch 5 Debugging Project/CST11116-Lab0-Ahmed.txt
diff --git a/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp b/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp
index c04cd17..f30123e 100644
--- a/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp
+++ b/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp
@@ -41,12 +41,23 @@
* 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?
+* 6) Look at your watch. What is the value of money?
+
+ money 123.449997 float
+
* 7) Hover your mouse pointer over raise. What is its value?
+
+ raise 0.100000001 float
+
* 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
* to increase our money? Stop debugging and fix the calculation.
+
+ - The calculation only multiplies the money by the raise,
+ when it should actually be multiplying it by raise + 1.
+ Right now we are only getting the value that the money
+ shoudl be increases by.
*
*
* Debugging Exercise 3
diff --git a/Ch 5 Debugging Project/Ch 5 Debugging Project.vcxproj b/Ch 5 Debugging Project/Ch 5 Debugging Project.vcxproj
index b1784a0..09ec702 100644
--- a/Ch 5 Debugging Project/Ch 5 Debugging Project.vcxproj
+++ b/Ch 5 Debugging Project/Ch 5 Debugging Project.vcxproj
@@ -147,7 +147,7 @@
</ItemGroup>
<ItemGroup>
<Text Include="Checklist.txt" />
- <Text Include="CST11116-Lab0-Ahmed" />
+ <Text Include="CST11116-Lab0-Ahmed.txt" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
diff --git a/Ch 5 Debugging Project/Ch 5 Debugging Project.vcxproj.filters b/Ch 5 Debugging Project/Ch 5 Debugging Project.vcxproj.filters
index dd2959d..dedc1e2 100644
--- a/Ch 5 Debugging Project/Ch 5 Debugging Project.vcxproj.filters
+++ b/Ch 5 Debugging Project/Ch 5 Debugging Project.vcxproj.filters
@@ -28,7 +28,7 @@
<Text Include="Checklist.txt">
<Filter>Source Files</Filter>
</Text>
- <Text Include="CST11116-Lab0-Ahmed">
+ <Text Include="CST11116-Lab0-Ahmed.txt">
<Filter>Source Files</Filter>
</Text>
</ItemGroup>