From 2cd37953a0aba986455dbad53fbb5d00aa8b49cb Mon Sep 17 00:00:00 2001 From: prestonderek Date: Wed, 5 Oct 2022 14:55:23 -0700 Subject: Added more user input. --- Ch 5 Debugging Project/Ch 5 Debugging Project.cpp | 8 ++++++-- 1 file 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 #include @@ -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; -- cgit v1.2.3