diff options
| author | Trenton Stark <[email protected]> | 2022-10-01 12:57:30 -0700 |
|---|---|---|
| committer | Trenton Stark <[email protected]> | 2022-10-01 12:57:30 -0700 |
| commit | f4fac080827e94ca77a83d23eee93cfaff1a530a (patch) | |
| tree | a9cdfebbf1901073e739cb8da36cf4baf61e49f7 | |
| parent | Fixed the raise claculation (diff) | |
| download | cst116-lab0-debugging-starktre-f4fac080827e94ca77a83d23eee93cfaff1a530a.tar.xz cst116-lab0-debugging-starktre-f4fac080827e94ca77a83d23eee93cfaff1a530a.zip | |
Percentage raise is now a percentage and not a decimal
| -rw-r--r-- | Ch 5 Debugging Project/Ch 5 Debugging Project.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp b/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp index 1944742..9c69bf8 100644 --- a/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp +++ b/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp @@ -82,7 +82,7 @@ int main() cout << "Enter percent raise: ";
cin >> raise;
- money += money * raise;
+ money += money * raise/100;
cout << "After your raise you have $";
cout << money << endl;
|