fix the code in c++
Kyle's calculator program should allow a user to enter in numbers to either add or subtract. After each calculation, the program should store the previous result and allow the user to either add more to it or subtract from it. Here is an example of how the program should operate:
******************************************
Welcome to the simple calculator program!
This program will do simple addition and
subtraction. Math is fun, so enjoy!
******************************************
Please enter the first integer: 42
Please select a math function to perform ("+" = Addition, "-" = Subtraction): +
Please enter the second integer: 17
The result is 59
Would you like to continue calculating? (Y/N): y
Please select a math function to perform ("+" = Addition, "-" = Subtraction): -
Please enter the second integer: 34
The result is 25
Would you like to continue calculating? (Y/N): nAs long as the user answers either 'Y' or 'y' to the continue question, the program should continue calculating based on the last result. Help Kyle by fixing all of his coding mistakes so that his program will successfully compile and run as outlined above. Be sure to make comments in the code to highlight where Kyle went wrong.
12 years ago
15
Answer(1)![blurred-text]()
![]()
Purchase the answer to view it

NOT RATED
- calculator.zip
Bids(0)
other Questions(10)
- Strategic Capabilities
- CRJ 305 Crime Prevention Ashford University
- Construct a leadership development plan for yourself *REPORT ESSAY*
- Personal and Professional development
- Product Life Cycle
- Bio case study
- Writing homework WR 227
- need a marketing paper due tonight 3 to 4 page
- Need a short Finance paper written
- MKT 571 Week 4 Team Assignment - Marketing Plan Phase II