Assignment 1(b) Calculator

Download Category:

Calculator.zip - (472.28 KB)
[
Calculator/Calculator.cpp
Calculator/Calculator.sln
Calculator/Calculator.suo
Calculator/Calculator.vcxproj
Calculator/Calculator.vcxproj.filters
Calculator/Calculator.vcxproj.user
Calculator/Debug/
Calculator/Debug/Calculator.exe
Calculator/Debug/Calculator.exe.embed.manifest
Calculator/Debug/Calculator.exe.embed.manifest.res
Calculator/Debug/Calculator.exe.intermediate.manifest
Calculator/Debug/Calculator.ilk
Calculator/Debug/Calculator.lastbuildstate
Calculator/Debug/Calculator.log
Calculator/Debug/Calculator.obj
Calculator/Debug/Calculator.pdb
Calculator/Debug/Calculator.vcxprojResolveAssemblyReference.cache
Calculator/Debug/Calculator.write.1.tlog
Calculator/Debug/Calculator_manifest.rc
Calculator/Debug/cl.command.1.tlog
Calculator/Debug/CL.read.1.tlog
Calculator/Debug/CL.write.1.tlog
Calculator/Debug/link.3052.read.1.tlog
Calculator/Debug/link.3052.write.1.tlog
Calculator/Debug/link.3052-cvtres.read.1.tlog
Calculator/Debug/link.3052-cvtres.write.1.tlog
Calculator/Debug/link.command.1.tlog
Calculator/Debug/link.read.1.tlog
Calculator/Debug/link.write.1.tlog
Calculator/Debug/link-cvtres.read.1.tlog
Calculator/Debug/link-cvtres.write.1.tlog
Calculator/Debug/mt.command.1.tlog
Calculator/Debug/mt.read.1.tlog
Calculator/Debug/mt.write.1.tlog
Calculator/Debug/rc.command.1.tlog
Calculator/Debug/rc.read.1.tlog
Calculator/Debug/rc.write.1.tlog
Calculator/Debug/vc100.idb
Calculator/Debug/vc100.pdb
Calculator/Question.txt
Calculator/Screenshot_1.jpg
]

Assignment 1(b) Calculator
Write a new C++ program that allows the user to perform simple calculations using to the following
steps:
1. The program writes a greeting on the screen.
2. The program writes a short message (about one line) describing how to use it.
3. The program lets the user enter a number.
4. The program lets the user enter an operator.
5. The program lets the user enter a number.
6. If the operator equals “+”, then the program calculates and displays the sum of the two
numbers entered by the user.
7. The program can also compute and display the result for “-“, “*”, “/”
8. If the operator is not +, -, *, or /, then the program terminates.
9. If the program does not terminate, then it repeats these operations from step 2.
The output of the program might look like this:

Write a Review

Get a fresh solution of this question. Ask it now to our experts.
doubt

Ask Your Question

We have verified professionals who are ready to answer your question.

time

Save Time and Money

We choose experts who can quickly answer your question and that suit your budget.

download

Get Your Answer

Your satisfaction is 100% guaranteed. You can keep on asking questions until you get the answer you need.