Program Specification:
Program: Write a JAVA program to simulate a calculator. Your program should take two numbers and an operator (+,-,*,or/), from the user in the following format: number1 operator number2 (For example 5.6 + 7.2) and print the result.
Your program will print and error message if the users enters an invalid operator.
How to prepare a program to simulate a calculator? Write this Program using java programming concepts.