diff options
| author | Tim Pearse <[email protected]> | 2022-10-08 13:00:41 -0700 |
|---|---|---|
| committer | Tim Pearse <[email protected]> | 2022-10-08 13:00:41 -0700 |
| commit | 44eadcab7f3ff7072da109ececb9127f65c16639 (patch) | |
| tree | edde17ccd7f9a8ad9145b0fc045ed13359f36d04 /CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp | |
| parent | Change 1 : Went through debugging exercise 1 & 2. (diff) | |
| download | cst116-ch5-debugging-legokid1503-44eadcab7f3ff7072da109ececb9127f65c16639.tar.xz cst116-ch5-debugging-legokid1503-44eadcab7f3ff7072da109ececb9127f65c16639.zip | |
Change 1.5 : Getting the actual code in now.
Next step: Exercise 3
Diffstat (limited to 'CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp')
| -rw-r--r-- | CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp b/CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp index 851932d..35b0e1c 100644 --- a/CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp +++ b/CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp @@ -73,10 +73,10 @@ int main() // Breakpoint 1
// Put a breakpoint on the following line
- cout << "Enter percent raise: ";
+ cout << "Enter PERCENT raise: ";
cin >> raise;
- money = money * raise;
+ money = money * (raise * .01 + 1);
cout << "After your raise you have $";
cout << money << endl;
|