Q2)Write a program that asks the user to type two numbers x, y and an arithmetic symbol s. Depending on the entered symbol, the program adds or subtract the two numbers and return the result using a...


Java


Q2)Write a program that asks the<br>user to type two numbers x, y and an<br>arithmetic symbol s. Depending on<br>the entered symbol, the program adds<br>or subtract the two numbers and<br>return the result using a return type<br>method with three parameter.<br>Example : If the input is 2, 3, and '+'.<br>Then, the program will print:5<br>

Extracted text: Q2)Write a program that asks the user to type two numbers x, y and an arithmetic symbol s. Depending on the entered symbol, the program adds or subtract the two numbers and return the result using a return type method with three parameter. Example : If the input is 2, 3, and '+'. Then, the program will print:5

Jun 02, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here