Question: package sa.edu.yuc; import java.util.Scanner; import java.util.Stack; public class Evaluate { public static void main(String[] args) { Stack operandStack = new Stack (); Stack operatorStack =
package sa.edu.yuc;
import java.util.Scanner; import java.util.Stack;
public class Evaluate {
public static void main(String[] args) { Stack
}
--------------------------------------------------------------------------------------------------
Questions1:
3*4-2
It can only handle single digit operands and no spaces are allowed within the expression. The operators are limited to +, - * and /.
In this Exercise, we want you to extend the given program in such a manner that it could handle decimal numbers, Or Reminder (%) e.g.
2.5 * 4.0 1.5 * 2.0
OR
5 - 2 * 4 % 16
*just apdate on this code*
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
