What does the program segment in Exercise 7 do? (4)
Evaluate the following postfix expressions: (5)
a. 12 18 – 30 +2 * 3 / =
b. 28 5 / 3+ 5 4 * – 8 + =
c.13 18 10 17 2 20 + – + / =
d. 7 3 6 2 + – + 2 * 8 + =
e. 29 3 / 6 + 12 – 3 4 * + =
Convert the following infix expressions to postfix notations: (5)
a. x + y + z – w / t
b. x – ( y + z ) * w + ( t – u ) / s
c. ( ( x + y ) – z * ( u – v ) ) / t + w
d. x / y / z + ( u * v * t ) / w – s