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/Ch 5 Debugging Project.cpp | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (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 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; -- cgit v1.2.3