In Java please as soon as possible



Please give thumbsup, if you like it. Thanks.
In Java please as soon as possible Convert the following expressions to both Prefix and Postfix...
java
Convert the following expressions to both Prefix and Postfix / Infix and create the binary trees which represent them. (A B/C+D$E)* (F/ G) - H B. (A+B)+(C/ (D E)-F)/G H KL+AB+C DEF$/-/HI+* -
Using ADT Stack: Evaluating infix expressions by converting them to postfix expressions Postfix notation: In a postfix expression, a binary operation follows its two opperands. The order of the operands in a infix expression is the same as in the corresponding postfix expression but the order of the operators might change based on the precedence of the operators and the existing of paranthses. Infix Postfix a + b a b + (a + b) * c a b + c...
Complete the following java program in which infix expressions should be converted to postfix expressions /** * An algebraic expression class that has operations such as conversion from infix * expression to postfix expression, * and evaluation of a postfix expression */ public class Expression { /** * The infix of this expression */ private String infix; /** * Constructs an expression using an infix. */ public Expression(String infix){ this.infix = infix; } /** * Converts an infix expression into...
2. Convert the expressions from infix to postfix. Demonstrate use of the stack to carry this out. A) 2 * (3 + 4) / (5 * 2) B) A – (B + C * D / E) C) A / B / C - (D + E ) * F
Write a program to convert the following infix to the postfix. (A – B) * C + D / E * (F – G) Using C++ will have to run on mac
Convert the following Infix Expression to Postfix, Using the above sample solution 10. A+ ((B-C* D/E ) +F-G/H
C++ code: Problem 3. Convert the following infix expression to a prefix expression by Stack operation. A + B* C + (D^E) * F/G/H + I Evaluate the value of prefix expression when A=5, B=10, C=3, D=12, E=3, F=5, G=8, H=4, I=100
a+b
4) (14 pts) Convert the following infix expression to postfix notation: +b)/(c-d) + e) *f-g (A - B + C ) *D + EIF
5) Consider the following Java statements, assuming that MyStack is a class that implements the interface StackInterface : int n = 4; StackInterface stack = new MyStack<>(); while (n > 0) { stack.push(n); n--; } // end while int result = 1; while (!stack.isEmpty()) { int integer = stack.pop(); result = result * integer; } // end while System.out.println("result = " + result); a.) What value is displayed when this code executes? b.) What mathematical function does the code evaluate?...
Convert the following arithmetic expressions from reverse Polish notation (RPN) to infix notation : A B C * + D / E F + * A B C D E F G + * + * + *