diff options
Diffstat (limited to 'CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp')
| -rw-r--r-- | CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp b/CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp index 2545e26..4c37986 100644 --- a/CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp +++ b/CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp @@ -93,12 +93,14 @@ int main() // Breakpoint 1
// Put a breakpoint on the following line
- //displays "Enter percent raise" then uses it as the 'raise'
+ //displays "Enter percent raise" then uses it as the 'raise' value
cout << "Enter percent raise: ";
cin >> raise;
+ //this is the equation used to calculate the raise amount
money = money * raise;
+ //displayed the final result from the equation
cout << "After your raise you have $";
cout << money << endl;
|