Write a program similar to Listing, Calculator.java. Instead of using integers, use rationals, as shown in Figure. You will need to use the split method in the String class, introduced in Section, Replacing and Splitting Strings, to retrieve the numerator string and denominator string, and convert strings into integers using the Integer.parseInt method.


(a) The program takes three arguments (operand1, operator, and operand2) from the command line and displays the expression and the result of the arithmetic operation. (b) A complex number can be interpreted as a point in a plane.
Listing

We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.