CPSC 170 PreLab 9
Postfix Expressions

  1. Convert each infix expression below to postfix:
    1. (a + b) * (c - d)



    2. a + (b * (c - (d / e)))



    3. (((a + b) * c) - d) / e



  2. Use a stack to evaluate each postfix expression below. Show your work.
    1. 10   2   /   3   -   4   5   *   +











    2. 50   20   5   -   2   1   +   *   -