Question: done in c++ A calculator program reads in a menu choice to perform arithmetic on two integer variables number1 and number2 with the result assigned
done in c++
A calculator program reads in a menu choice to perform arithmetic on two integer variables number1 and number2 with the result assigned to variable result. Write a switch statement that will perform the correct arithmetic if the menu variable contains one of the following operators [+-*/%]. Write an error message out to the console if menu contains any other character than one of the operators listed. (You are only writing the switch statement; all other code is provided.) int number=0, number2=0, result=0; char menuChoice; 1/... code to prompt and read numbers and menu choice not shown IC A- A - TXE x? X, 12pt Paragraph
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
