Convert 5 * 8 / 2 ^ 2 + 4 * 6 to postfix and prefix notation
Evaluate the prefix expression: * * + 2 5 * 9 0 ^ 3 2
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
Convert 5 * 8 / 2 ^ 2 + 4 * 6 to postfix and prefix notation
postfix = 5 8 * 2 / 2 ^ 4 6 * +
prefix = + ^ / * 5 8 2 2 * 4 6
Evaluate the prefix expression: * * + 2 5 * 9 0 ^ 3 2
= * * 7 0 1 = * 0 1 = 0
Evaluate the postfix expression: 5 6 * 3 5 * - 2 2 ^ *
= 30 3 5 * - 0 * = 30 15 - 0 * = 15 0 * = 0
BONUS: Find the value of X (this time there is only 1 answer!) in the following postfix equation:
5 6 - X * 2 + = -7
==> -1 X * 2 + = -X 2 + = -X +2 = -7
==> X = 2 + 7 = 9
Jerry
wait i didnt know i just had the same thing as another person
1.
5 * 8 / 2 ^ 2 + 4 * 6 = ((5 * 8) / (2 ^ 2)) + (4 * 6)
Prefix notation: + / * 5 8 ^ 2 2 * 4 6
Postfix notation: 5 8 * 2 2 ^ / 4 6 * +
2.
* * + 2 5 * 9 0 ^ 3 2
= * * 7 0 9
= * 0 9
= 0
3.
5 6 * 3 5 * - 2 2 ^
= 30 15 - 4
= 15 4
1. ) 5 * 8 / 2 ^ 2 + 4 * 6
- Prefix: 5 8 * 2 2 ^ / 4 6 * +
- Postfix: + / x 5 8 ^ 2 2 x 4 6
2. ) 0
3. ) 15 4
* 8 / 2 ^ 2 + 4 * 6 = ((5 * 8) / (2 ^ 2)) + (4 * 6) Prefix notation: + / * 5 8 ^ 2 2 * 4 6 Postfix notation: 5 8 * 2 2 ^ / 4 6 * + 2. * * + 2 5 * 9 0 ^ 3 2 = * * 7 0 9 = * 0 9 =
3. 5 6 * 3 5 * - 2 2 ^ = 30 15 - 4 = 15 4
Pre. +/*58^22*46
post. 58+/*22^46*
2. 0
3. 60
Bonus:X=-3
Post: 5 8 x 2 2 ^ / 4 6 x + Pre: + / x 5 8 ^ 2 2 x 4 6
0
15 4
X = 9
1.
5 * 8 / 2 ^ 2 + 4 * 6 = ((5 * 8) / (2 ^ 2)) + (4 * 6)
Prefix notation: + / * 5 8 ^ 2 2 * 4 6
Postfix notation: 5 8 * 2 2 ^ / 4 6 * +
2.
* * + 2 5 * 9 0 ^ 3 2
= * * 7 0 9
= * 0 9
= 0
3.
5 6 * 3 5 * - 2 2 ^
= 30 15 - 4
= 15 4
5 * 8 / 2 ^ 2 + 4 * 6
PREFIX NOTATION: + / * 5 8 ^ 2 2 * 4 6
POSTFIX NOTATION: 5 8 * 2 2 ^ / 4 6 * +
0
60
BONUS: X = 9