diff options
| author | Joe Traver <[email protected]> | 2022-10-10 15:08:49 -0700 |
|---|---|---|
| committer | Joe Traver <[email protected]> | 2022-10-10 15:08:49 -0700 |
| commit | 5917fa5c0b98a4c1cff925d7a391cf73318eca1e (patch) | |
| tree | eb51e0a6000e9340edd1f11e59533355c1c4c111 /CST116-Ch5-Debugging | |
| parent | Added header to code (diff) | |
| download | cst116-ch5-debugging-joetraver30-5917fa5c0b98a4c1cff925d7a391cf73318eca1e.tar.xz cst116-ch5-debugging-joetraver30-5917fa5c0b98a4c1cff925d7a391cf73318eca1e.zip | |
Converted raise to decimal equivalant for calculation
Diffstat (limited to 'CST116-Ch5-Debugging')
| -rw-r--r-- | CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp b/CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp index 17aa017..545ebf6 100644 --- a/CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp +++ b/CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp @@ -83,6 +83,8 @@ int main() cout << "Enter percent raise: ";
cin >> raise;
+ raise = raise * .01;
+
money = money * raise;
cout << "After your raise you have $";
|