Answer:
The solution code is written in Java.
Explanation:
To ask for the user input for two whole numbers and an operator, we can use Java Scanner class object. Since the input operator is a string, we can use nextLine() method to get the operator string (Line 3). We use nextInt() method to get whole number input (Line 5 & 7).
Next we use the switch keyword and pass the operator into the switch structure to determine which case statement should be executed. For example, if the input operator is "*" the statement "result = num1 * num2; " will run and multiply num1 with num2.