diff options
| author | prestonderek <[email protected]> | 2022-10-05 14:55:23 -0700 |
|---|---|---|
| committer | prestonderek <[email protected]> | 2022-10-05 14:55:23 -0700 |
| commit | 2cd37953a0aba986455dbad53fbb5d00aa8b49cb (patch) | |
| tree | facc0d89155d735f5e43397dc0b3216c05fad593 | |
| parent | Commit 10/5/22 for pseduocode and output files (diff) | |
| download | cst116-lab0-debugging-prestonderek-2cd37953a0aba986455dbad53fbb5d00aa8b49cb.tar.xz cst116-lab0-debugging-prestonderek-2cd37953a0aba986455dbad53fbb5d00aa8b49cb.zip | |
Added more user input.
| -rw-r--r-- | Ch 5 Debugging Project/Ch 5 Debugging Project.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp b/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp index 4f9cbed..ba6fd8a 100644 --- a/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp +++ b/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp @@ -65,7 +65,7 @@ //After reading through some of the questions again I realize that me adding a while loop wasn't what was asked of me. I was asked to go back after enter a value of .1 and fix the numbers within the calculation. Although what I did definitely eliminated the possibility for a 'lowering raise'
//added psuedocode file on 10/5/22.
//added output file on 10/5/22.
-
+//After running this program with this addition, it is more of just a multiplicaiton calculator over a raise calculator.
#include <iostream>
#include <iomanip>
@@ -75,9 +75,13 @@ using std::endl; int main()
{
- float money = 123.45F;
+ float money;
float raise;
+ //added a quality step to make this a more definable program. 10.5.22 at 3pm.
+ cout << "Enter your current salary" << endl;
+ cin >> money;
+
cout << "You have $";
cout << money << endl;
|