Question: 16. a) Write the following expression in postfix (reverse Polish) notation. Remember the rules of precedence for arithmetic operators! b) Write a program to evaluate

16.

a) Write the following expression in postfix (reverse Polish) notation. Remember the rules of precedence for arithmetic operators!

A-B+CX (DXE-F) X G+HXK

b) Write a program to evaluate the above arithmetic statement using a stack-organized computer with zero-address instructions (so only Pop and Push can access memory).

A-B+CX (DXE-F) X G+HXK

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Systems Analysis And Design Questions!