### Geometric Calculations

Hello!
i'm trying to write a program that has 4 geometric calculations. One of the calculations has to have 2 choices. This totals to 5 options. The program should prompt the user for the required values and then display the result of the calculation, and display the options with a menu. The user should then be able to quit the program.

....I HAVE NO IDEA HOW TO DO THIS.
 ``123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140`` ``````// SwitchCalculator - use the switch state ment to implement a calculator #include #include #include using namespace std; void op1(int nOperand1, int nOperand2, char cOperator,int nOperand3,char cOperator2) { int result; switch (cOperator) { case '+': result = nOperand1 + nOperand2; break; case '-': result = nOperand1 - nOperand2; break; case '*': case 'x': case 'X': result = nOperand1 * nOperand2; break; case '/': result = nOperand1 / nOperand2; break; case '%': result = nOperand1 % nOperand2; break; default: cout << " is not understood"; } switch (cOperator2) { case '+': result = result + nOperand3; break; case '-': result = result - nOperand3; break; case '*': case 'x': case 'X': result = result * nOperand3; break; case '/': result = result / nOperand3; break; case '%': result = result % nOperand3; break; default: cout << " is not understood"; } cout << result << endl; } void op2(int nOperand2, int nOperand3, char cOperator2,int nOperand1,char cOperator) { int result; switch (cOperator2) { case '+': result = nOperand2 + nOperand3; break; case '-': result = nOperand2 - nOperand3; break; case '*': case 'x': case 'X': result = nOperand2 * nOperand3; break; case '/': result = nOperand2 / nOperand3; break; case '%': result = nOperand2 % nOperand3; break; default: cout << " is not understood"; } switch (cOperator) { case '+': result = result + nOperand1; break; case '-': result = result - nOperand1; break; case '*': case 'x': case 'X': result = result * nOperand1; break; case '/': result = result / nOperand1; break; case '%': result = result % nOperand1; break; default: cout << " is not understood"; } cout << result << endl; } int main(int nNumberofArgs, char* pszArgs[]) { int nOperand1; int nOperand2; int nOperand3; char cOperator; char cOperator2; cout << "Enter 'value1 op value2 op2 value3'\n" << "where op is +, -, *, / or %:" << endl; cin >> nOperand1 >> cOperator >> nOperand2 >> cOperator2 >> nOperand3; cout << nOperand1 << " " << cOperator << " " << nOperand2 << " " << cOperator2 << " " << nOperand3 << " = "; if(cOperator == '*' || cOperator == '/') { op1(nOperand1,nOperand2,cOperator,nOperand3,cOperator2); } else { op2(nOperand2,nOperand3,cOperator2,nOperand1,cOperator); } cout << endl; system("PAUSE"); return 0; } ``````