Question: QUESTION 4 (15 marks) a) Convert the following POSTFIX expression to INFIX expression i. PQ+RX-* ii. ABIC- (4 marks) b) Convert the following INFIX expression

QUESTION 4 (15 marks) a) Convert the following POSTFIX expression to INFIX expression i. PQ+RX-* ii. ABIC- (4 marks) b) Convert the following INFIX expression to PREFIX expression i. P*(Q-R) + S-T ii. (A+B+C) * D-E/F (4 marks) c) Given an INFIX expression as follows M*N*P*(Q/R* (S-T)) i. Convert it into a POSTFIX expression ii. Evaluate the postfix notation from the (i) and show all the steps by using stack configuration. Given the values of the variables are: M = 7, N = 3, P = 4, Q = 12, R = 6, S = 5, T = 2 (7 marks)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
