From 5917fa5c0b98a4c1cff925d7a391cf73318eca1e Mon Sep 17 00:00:00 2001 From: Joe Traver Date: Mon, 10 Oct 2022 15:08:49 -0700 Subject: Converted raise to decimal equivalant for calculation --- CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'CST116-Ch5-Debugging') 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 $"; -- cgit v1.2.3