Create the equivalent of a four function calculator. The program should request the user to enter a number, an operator, and another number (use floating point). It should then carry out the specified arithmetic operation: adding, subtracting, multiplying or dividing the two numbers. Use a switch statement to select the operation and perform the arithmetic operations. Finally display the result.