I need some help with a calculator I need to create in C++ for my coursework.
Firstly, the user needs to be able to select an operator from +,-,*,/,%,n2
Next, they will input number one then number two, and the answer will be given depending on which operator was selected.
I managed to get a basic one working with case/swtich statements (I think thats what they are?) but the problem is, the design says it must include at least
Can someone try to help me with this? Ill paste my code below of what i've got so far, but I just need to know where to put procedures
Also, i'm not the best at variables either so I don't know if everything is exactly right.
using namespace std;
cout<<"Please select an Operator for the calculation: + or -\n";
cout<<"Please enter the first number: ";
cout<<"Please enter the second number: ";
Any help would be greatly appreciated! Thanks guys