DATA STRUCTURE INFIX TO POSTFIX CONVERSION CLASSWORK

DATA STRUCTURE INFIX TO POSTFIX CONVERSION CLASSWORK


1. Convert the following infix expression  to postfix expression.
  • a*b+c/d
  • a - b + c * d ^ e * g / h
  • a+b*(c-d)/e
  • u * v + (w-z)/x
  • (X-Y) + (W*Z) / V
  • A-(B*C) + D / E
2. Convert the following expression  postfix to infix expression.
  • 5 2 4 2 1 ^ 9 6 5 / + - = (Solve )
  • a b - c - d - 
  • a b + c * d -
  • 10 20 + 25 15 - * 30 /
  • 15   3   2  +   /   7   +   2   *
3. Evaluate the following postfix notation of expression 
    50, 60, +, 20, 10,   -,   *
4. Evaluate the following postfix notation of expression :
     True, False, Not, Or, False,True, OR, And
5. 


0 Comments