3. Write a java program as in the next class diagram, such as: SimpleCalc2 SimpleCalc2() method only calls find method. find() method: asks the user to enter two numbers and a math operation...

In java3. Write a java program as in the next class diagram, such as:<br>SimpleCalc2<br>SimpleCalc2() method only calls find method.<br>find() method: asks the user to enter two numbers and a math operation like(+,-,*./) and<br>prints the result like (inputs and outputs only)<br>- x: double<br>+ y: double<br>+ getX(): double<br>+ setX(double x): void<br>+ SimpleCalc2()<br>Enter no1: 4<br>Enter no1: 5<br>Enter no1: 5<br>Enter no2: 7<br>Enter no2: 7<br>Enter no2: 7<br>Enter operation: *<br>Enter operation: +<br>Enter operation: -<br>+ find() : void<br>4*7=28<br>5+7=12<br>4-9=-5<br>+ advanced(String s): void<br>advanced(..) Let the user enter a whole line like (5+8) and analyse it, then prints result<br>

Extracted text: 3. Write a java program as in the next class diagram, such as: SimpleCalc2 SimpleCalc2() method only calls find method. find() method: asks the user to enter two numbers and a math operation like(+,-,*./) and prints the result like (inputs and outputs only) - x: double + y: double + getX(): double + setX(double x): void + SimpleCalc2() Enter no1: 4 Enter no1: 5 Enter no1: 5 Enter no2: 7 Enter no2: 7 Enter no2: 7 Enter operation: * Enter operation: + Enter operation: - + find() : void 4*7=28 5+7=12 4-9=-5 + advanced(String s): void advanced(..) Let the user enter a whole line like (5+8) and analyse it, then prints result

Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here