EXPRESSION FORMATS TOPIC 02 – POSTFIX NOTATION LESSON WORK TASK
1
TASK
2 Evaluate the following postfix expressions
by first trying to solve them on your own and then verifying the answers in
the calculator above. a)
7
2 + b)
10
4 2 * - c)
6
2 * 5 + d)
100
10 2 * / e)
60
5 2 * / 4 + TASK
3 Write the following infix notations
into postfix notations: a)
4
+ 2 b)
7
– 2 + 5 c)
100
/ 10 / 10 d)
10
+ 2 * 4 – 5 e)
(200
/ 5 + 10) / 5 You can test your answers by using the
calculator in task 1. TASK
4 (TIME PERMITTING) Can you find a programming language
that uses Postfix? Try installing it.
If it works, then let Mr.Campeau know. |