Advertisement
akosiraff

Assignment 1(b) Calculator

Aug 31st, 2015
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1.  
  2. Download: http://solutionzip.com/downloads/assignment-1b-calculator/
  3. Assignment 1(b) Calculator
  4. Write a new C++ program that allows the user to perform simple calculations using to the following
  5. steps:
  6. 1. The program writes a greeting on the screen.
  7. 2. The program writes a short message (about one line) describing how to use it.
  8. 3. The program lets the user enter a number.
  9. 4. The program lets the user enter an operator.
  10. 5. The program lets the user enter a number.
  11. 6. If the operator equals “+”, then the program calculates and displays the sum of the two
  12. numbers entered by the user.
  13. 7. The program can also compute and display the result for “-“, “*”, “/”
  14. 8. If the operator is not +, -, *, or /, then the program terminates.
  15. 9. If the program does not terminate, then it repeats these operations from step 2.
  16. The output of the program might look like this:
  17. Download: http://solutionzip.com/downloads/assignment-1b-calculator/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement