C++ switch statement calculator : <p>I need to make a calculator for C++ using switch statement. Exact instructions are: 
Part #1:</p>

<p>Use a switch-case statement to write a basic calculator program which presents the user with the following menu:</p>

<pre><code>  Menu
  =============
  +) Add
  -) Subtract
  *) Multiply
  /) Divide
  x) Exit
  ==============
  Enter your choice:
</code></pre>

<p>For a user selection of +, -, *, or /, the program prompts for two operands and then performs the calculation and displays the result
If the user selects X or x, the program ends.
If the user selects a character other than +, -, *, /, x, or X, the program displays an error message that the selection is invalid.
Part #2:</p>

<p>Add the following input validation to your solution to Calculator Part #1:</p>

<p>If the user selects the divide choice, /, and second operand is zero, the program responds that “Division by zero is not possible.”</p>

<p>I would love to go through all of my previous attempts but unfortunately I left my drive at home and now I'm down to the wire. I CAN however tell you I was using this type of format:</p>

<pre><code>int main()
{
char choice;

cout &lt;&lt; "Enter A, B, or C: ";
cin &gt;&gt; choice;

switch (choice)
{
  case 'A': cout &lt;&lt; "You entered A.\n";
                break;
  case 'B': cout &lt;&lt; "You entered B.\n";
                break;
  case 'C': cout &lt;&lt; "You entered C.\n";
                break;
  default: cout &lt;&lt; "You did not enter A, B, or C!\n";
}
return 0;
}
</code></pre>

<p>Any help would be greatly appreciated. Have no idea why I am so stumped on this one. </p>
