Question 1
3 marksConvert (5+2)×(9−4) to RPN, and give the root operator and its two child subexpressions in the expression tree.
Show solution and marking guidance
Indicative answer
- 5 2 + 9 4 − ×.
- Root multiplication.
- Left subtree 5+2; right subtree 9−4.