From faac582eeaf57d0e50f41d5d40995846742c1ade Mon Sep 17 00:00:00 2001 From: Nathanturcas Date: Thu, 20 Oct 2022 22:24:07 -0700 Subject: commit. 3 --- CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'CST116-Ch5-Debugging') diff --git a/CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp b/CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp index 851932d..50d04b4 100644 --- a/CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp +++ b/CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp @@ -37,8 +37,8 @@ * 4) Enter the value .1 and press enter. * 5) Notice that the current line of execution is now at the * calculation. -* 6) Look at your watch. What is the value of money? -* 7) Hover your mouse pointer over raise. What is its value? +* 6) Look at your watch. What is the value of money? +* 7) Hover your mouse pointer over raise. What is its value? $12.345 * 8) Step over the calculation. Notice the watch on money is now * red. This designates that the variable just changed its value. * 9) What happened to our money? I thought a raise was supposed @@ -76,7 +76,7 @@ int main() cout << "Enter percent raise: "; cin >> raise; - money = money * raise; + money = money + (money * raise); cout << "After your raise you have $"; cout << money << endl; -- cgit v1.2.3