Today we went over Postfix, Prefix, and Infix notation.
HW:
1. Convert 5 * 8 / 2 ^ 2 + 4 * 6 to postfix and prefix notation
2. Evaluate the prefix expression: * * + 2 5 * 9 0 ^ 3 2
3. Evaluate the postfix expression: 5 6 * 3 5 * - 2 2 ^ *
BONUS: Find the value of X (this time there is only 1 answer!) in the following postfix equation:
5 6 - X * 2 + = -7
Reply with your answers in the comments
1) postfix: 5 8 * 2 2 / ^ 4 6 * +; prefix: + / * 5 8 ^ 2 2 * 4 6
2) 0
3) 60
1: 5 8 * 2 2 ^ / 4 6 * + + / * 5 8 ^ 2 2 * 4 6
2: 0
3: 60
4: 9
hi guys