Question: 1.Evaluate the following postfix expressions: i. 6 2 + 4 * 16 4 / - ii. 4 5 6 * + 13 - 6 +
1.Evaluate the following postfix expressions:
i. 6 2 + 4 * 16 4 / -
ii. 4 5 6 * + 13 - 6 + 18 2 / /
2. Convert the following infix expressions to postfix notation.
i.(A - B) / ( C * D) E
ii.((A - B) * (C + D) - E) / F * G
iii.A + B / (C + D) / E + F * G - H
3. Convert the following infix expressions to prefix notation.
i.(A * B) / ( C - D) + E
ii.((A * B) * (C D) / E) / F + G
iii.A + B / (C - D) / E + F * G - H
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
