Question: Write a program that mimics a calculator. The program should take as input two integers and the operation to be performed. It should then output
Write a program that mimics a calculator. The program should take as input two integers and the operation to be performed. It should then output the numbers, the operator, and the result. (For division, if the denominator is zero, output an appropriate message.) Some sample outputs follow:
3 + 4 = 7 13 * 5 = 65
Turn in two versions, the first version uses if..else statements, the second version uses a switch statement.
need:
source code for both programs with
IPO chart incorporated as comments after the name of the file
A test plan or a screen shot of the results of your testing, Use the same data for both versions, they should produce the same output with the same test data.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
