aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Ch 5 Debugging Project/Ch 5 Debugging Project.cpp11
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
{