diff options
| author | prestonderek <[email protected]> | 2022-10-05 14:37:47 -0700 |
|---|---|---|
| committer | prestonderek <[email protected]> | 2022-10-05 14:37:47 -0700 |
| commit | eff3d19c43655d708ec6de6d7f1a52110ca0fe87 (patch) | |
| tree | e36f139818d0f2b06a5346b1f4c02878a7ab3728 | |
| parent | Commit for the addition of While loop (diff) | |
| download | cst116-lab0-debugging-prestonderek-eff3d19c43655d708ec6de6d7f1a52110ca0fe87.tar.xz cst116-lab0-debugging-prestonderek-eff3d19c43655d708ec6de6d7f1a52110ca0fe87.zip | |
Commit on 10/5/22
| -rw-r--r-- | Ch 5 Debugging Project/Ch 5 Debugging Project.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp b/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp index f5e6e86..db8ce35 100644 --- a/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp +++ b/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp @@ -55,7 +55,14 @@ * 4) Stop debugging. Now run the entire program by choosing the menu
* option Start Without Debugging.
*
-********************************************************************/
+*********************************************************************/
+
+//Derek Preston
+//Lab 0 Debugging
+//CST116
+
+//Breakpoints were added at the breakpoint 1 comment, and at the cout << Enter percent raise line.
+//After reading through some of the questions again I realize that me adding a while loop wasn't what was asked of me. I was asked to go back after enter a value of .1 and fix the numbers within the calculation. Although what I did definitely eliminated the possibility for a 'lowering raise'
#include <iostream>
#include <iomanip>
@@ -73,7 +80,7 @@ int main() // Breakpoint 1
// Put a breakpoint on the following line
- cout << "Enter percent raise above 1.0%: "; //Inserted breakpoint for step 1. //Added a rule for the users entered value to stop the raise from being below 1.0%
+ cout << "Enter percent raise above 1.0%: "; //Inserted breakpoint for step 1. //Added a rule for the users entered value to stop the raise from being below 1.0%. This still doesn't stop someone from entering an amount below 1.0%
cin >> raise;
while (raise <= 1.0) //I added this while loop to combat the issue of inserting a raise that either keeps the money at the current value or decreases it. This was for step 9 Debug 2
{
|