Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Q1. Convert the followinginfix expression into postfix Infix Postfix A +B-C*D 12

ID: 3614510 • Letter: Q

Question

Q1.      Convert the followinginfix expression into postfix

Infix

Postfix

A +B-C*D                                         

12 + 60 –23                           

(A + B) ­ (C ­ D)                    

A ­ B * C – D +E/F               

12 + 60 + 23*35-2

                                                                                   

Q2.      Evaluate the followingpostfix expression using stack.

1 2 3 1 ­ ­ – 4 5 6 * + 7 * -

Write each step of this conversion using the followingtable.

Input

Operator 1

Operator 2

value

stack

Infix

Postfix

A +B-C*D                                         

12 + 60 –23                           

(A + B) ­ (C ­ D)                    

A ­ B * C – D +E/F               

12 + 60 + 23*35-2

Explanation / Answer

x.