diff options
| author | Derek Preston <[email protected]> | 2022-10-01 19:32:01 -0700 |
|---|---|---|
| committer | Derek Preston <[email protected]> | 2022-10-01 19:32:01 -0700 |
| commit | f1209de93711ccdc7a10a083fdcd04ec8ac7da53 (patch) | |
| tree | 057fb6b6c1520f5bebcf8702475014f258792b98 | |
| parent | Commit at Step 10 of Debug1 (diff) | |
| download | cst116-lab0-debugging-prestonderek-f1209de93711ccdc7a10a083fdcd04ec8ac7da53.tar.xz cst116-lab0-debugging-prestonderek-f1209de93711ccdc7a10a083fdcd04ec8ac7da53.zip | |
Commit at 19:31 for save
| -rw-r--r-- | Ch 5 Debugging Project/Ch 5 Debugging Project.cpp | 12 | ||||
| -rw-r--r-- | Ch 5 Debugging Project/Debug/Ch 5 Deb.57683855.tlog/CL.command.1.tlog | bin | 1918 -> 914 bytes | |||
| -rw-r--r-- | Ch 5 Debugging Project/Debug/Ch 5 Deb.57683855.tlog/CL.read.1.tlog | bin | 41504 -> 21178 bytes | |||
| -rw-r--r-- | Ch 5 Debugging Project/Debug/Ch 5 Deb.57683855.tlog/CL.write.1.tlog | bin | 1582 -> 700 bytes | |||
| -rw-r--r-- | Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.exe | bin | 53760 -> 53760 bytes | |||
| -rw-r--r-- | Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.ilk | bin | 522436 -> 540388 bytes | |||
| -rw-r--r-- | Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.obj | bin | 83000 -> 0 bytes | |||
| -rw-r--r-- | Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.pdb | bin | 1970176 -> 2043904 bytes |
8 files changed, 9 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 295944d..04475bd 100644 --- a/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp +++ b/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp @@ -73,11 +73,17 @@ int main() // Breakpoint 1
// Put a breakpoint on the following line
- cout << "Enter percent raise: "; //Inserted breakpoint for step 1.
+ 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%
cin >> raise;
- //Step 10 when you step over you get "You have $123.45. Enter percent raise:"
- money = money * raise;
+ while (raise <= 1.0)
+ {
+ cout << "You must enter a number greater than 1.0";
+ cin >> "Enter percent raise above 1.0%";
+ }
+ money = money * raise;
+ //Step 10 when you step over you get "You have $123.45. Enter percent raise:"
+ //setting raise to .1 makes the value after the calculation 12.345.
cout << "After your raise you have $";
cout << money << endl;
diff --git a/Ch 5 Debugging Project/Debug/Ch 5 Deb.57683855.tlog/CL.command.1.tlog b/Ch 5 Debugging Project/Debug/Ch 5 Deb.57683855.tlog/CL.command.1.tlog Binary files differindex 4e53ea1..1a0c11c 100644 --- a/Ch 5 Debugging Project/Debug/Ch 5 Deb.57683855.tlog/CL.command.1.tlog +++ b/Ch 5 Debugging Project/Debug/Ch 5 Deb.57683855.tlog/CL.command.1.tlog diff --git a/Ch 5 Debugging Project/Debug/Ch 5 Deb.57683855.tlog/CL.read.1.tlog b/Ch 5 Debugging Project/Debug/Ch 5 Deb.57683855.tlog/CL.read.1.tlog Binary files differindex e982987..5e84124 100644 --- a/Ch 5 Debugging Project/Debug/Ch 5 Deb.57683855.tlog/CL.read.1.tlog +++ b/Ch 5 Debugging Project/Debug/Ch 5 Deb.57683855.tlog/CL.read.1.tlog diff --git a/Ch 5 Debugging Project/Debug/Ch 5 Deb.57683855.tlog/CL.write.1.tlog b/Ch 5 Debugging Project/Debug/Ch 5 Deb.57683855.tlog/CL.write.1.tlog Binary files differindex d355d93..141dadd 100644 --- a/Ch 5 Debugging Project/Debug/Ch 5 Deb.57683855.tlog/CL.write.1.tlog +++ b/Ch 5 Debugging Project/Debug/Ch 5 Deb.57683855.tlog/CL.write.1.tlog diff --git a/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.exe b/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.exe Binary files differindex e9a21f6..390e77f 100644 --- a/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.exe +++ b/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.exe diff --git a/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.ilk b/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.ilk Binary files differindex 63e72cf..380b030 100644 --- a/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.ilk +++ b/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.ilk diff --git a/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.obj b/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.obj Binary files differdeleted file mode 100644 index 07e9686..0000000 --- a/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.obj +++ /dev/null diff --git a/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.pdb b/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.pdb Binary files differindex fa93bcb..b138a81 100644 --- a/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.pdb +++ b/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.pdb |