aboutsummaryrefslogtreecommitdiff
path: root/CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp
diff options
context:
space:
mode:
authorJoe Traver <[email protected]>2022-10-10 15:08:49 -0700
committerJoe Traver <[email protected]>2022-10-10 15:08:49 -0700
commit5917fa5c0b98a4c1cff925d7a391cf73318eca1e (patch)
treeeb51e0a6000e9340edd1f11e59533355c1c4c111 /CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp
parentAdded header to code (diff)
downloadcst116-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/CST116-Ch5-Debugging.cpp')
-rw-r--r--CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp2
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 $";