diff options
| author | Trevor Bouchillon <[email protected]> | 2022-10-02 09:29:11 -0700 |
|---|---|---|
| committer | Trevor Bouchillon <[email protected]> | 2022-10-02 09:29:11 -0700 |
| commit | 141dcf586dca053c4e99d38df59d9954da56e1d3 (patch) | |
| tree | 50ceda6dc4d234b33fb04bc47abf1661673461a6 /Ch 5 Debugging Project/Ch 5 Debugging Project.cpp | |
| parent | Simple changes (diff) | |
| download | cst116-lab0-debugging-trevor-bouchillon-141dcf586dca053c4e99d38df59d9954da56e1d3.tar.xz cst116-lab0-debugging-trevor-bouchillon-141dcf586dca053c4e99d38df59d9954da56e1d3.zip | |
Debug 1 done
Diffstat (limited to 'Ch 5 Debugging Project/Ch 5 Debugging Project.cpp')
| -rw-r--r-- | Ch 5 Debugging Project/Ch 5 Debugging Project.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp b/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp index 6545e9b..f1fc246 100644 --- a/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp +++ b/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp @@ -70,10 +70,17 @@ int main() cout << "You have $";
cout << money << endl;
-
+ /* *******************************************************************************************************************************************
+ After the first cout statement we are at the line of code were the variable money is displayed in the console window.
+ Money appears to be a float type integer with a value of 123.449997 It shows up in the watch section of the code.
+ ******************************************************************************************************************************************
+ */
// Breakpoint 1
// Put a breakpoint on the following line
- cout << "Enter percent raise: ";
+ cout << "Enter percent raise: ";
+ /* *******************************************************************************************************************************************
+ The value shown in the watch was printed rounded to 2 decimal points.
+ *******************************************************************************************************************************************/
cin >> raise;
money = money * raise;
@@ -82,4 +89,4 @@ int main() cout << money << endl;
return 0;
-}
\ No newline at end of file + }
\ No newline at end of file |