Question: (MathTutor.java) Write a program that lets the user enter 2 numeric values, and an arithmetic operator: +, -, * and /. Write a switch statement
(MathTutor.java)
Write a program that lets the user enter 2 numeric values, and an arithmetic operator: +, -, * and /. Write a switch statement that displays the result of the calculation using the operator and two numbers entered by the user. Remember that the division must have decimals and you need to validate the operator and display a proper message when the user enters a non-valid operator.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
