From eff3d19c43655d708ec6de6d7f1a52110ca0fe87 Mon Sep 17 00:00:00 2001 From: prestonderek Date: Wed, 5 Oct 2022 14:37:47 -0700 Subject: Commit on 10/5/22 --- Ch 5 Debugging Project/Ch 5 Debugging Project.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 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 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 #include @@ -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 { -- cgit v1.2.3