Question: JAVA, Please Complete the class as showed in the picture and relate to the sample example, please include code to be copied and clarify! Complete
JAVA, Please Complete the class as showed in the picture and relate to the sample example, please include code to be copied and clarify!

Complete the class by creating the missing methods for the class Calculator. public class Calculatort public static void main(String [1 args)- double x getValueOne(); char operator getOperator); doublegetValueTwo printResult); import java.util.Scanner; public class Calculator public static void main(String[] args)( double x = getvalueOne(); char operator - getOperator); double y - getValueTwo); PrintResult( x, y, operator); Exercise 2 Sample Code public static double getValueOne () /*Your solution goes here public static double getValueTwo ) /*Your solution goes here ublic class Calculator public static void main(String args) double x getValue0ne) char operator getOperator); double y getValueTwo) printResult); public static char getOperator) Scanner scan = new Scanner(System.in); System.out.println("Please input an operator(+,,*, /):" char op char -scan.next().charAt (0); return op_char; public static void PrintResult (double x, double y, char operator) if (operator { System.out.println("The Result is: "+ (x+y)); *Your solution for (,*,/) goes here /
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
