Question: This is a Simple Calculator C + + 2 program. I provided a screenshot of the instructions for this program. Read it carefully. The Code
This is a Simple Calculator C program. I provided a screenshot of the instructions for this program. Read it carefully. The Code I'll provide with comments read them carefully with the corresponding code provided on the screenshot. Driver.cpp #include "SimpleCalc.h
#include
bool DoAnother;
using namespace std;
int main
cout a course header
declare any varibale you need and create a SimpleCalc object
char ansy;
SimpleCalc calc;
start a play loop
do
ask the user for the operation and the two operands
use the object to SetOperation
calc.SetOperationop num num;
call GetResults and show them
cout calc.GetResults;
ask the user if they want to go again
cout
Do you want to calculate another question? yn;
cin ans;
while DoAnother;
cout a goodbye
cout "Thank you using Simple Calculator, Goodbye!" endl;
return ;
bool DoAnother
char ansy;
cout
Do you want to calculate another? yn;
cin ans;
check
if ans y
return true;
return false;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
