Home / Expert Answers / Electrical Engineering / a-write-the-following-expression-in-postfix-reverse-polish-notation-use-standard-rules-of-prece-pa353

(Solved): (a) Write the following expression in postfix (reverse Polish) notation. Use standard rules of prece ...



student submitted image, transcription available below

(a) Write the following expression in postfix (reverse Polish) notation. Use standard rules of precedence for arithmetic operations.

A ? B + C × (D × E ? F)

(b) Design a minimal set of 3 address instructions necessary to evaluate the expression; explain what each instruction does. ?

Example: An instruction:

ADD A, B, C could do A ? B + C or B ? A + C or C ? A + B.

It is necessary to know what the instruction is actually doing.

(c) Repeat (b) using 2 address instructions

(d) Repeat (b) using 1 address instructions

(e) Write a program to evaluate the above arithmetic statement using the 3 address instructions set you designed.

(a) Write the following expression in postfix (reverse Polish) notation. Use standard rules of precedence for arithmetic operations. (b) Design a minimal set of 3 address instructions necessary to evaluate the expression; explain what each instructions does. - Example: An instruction: ADD could do It is necessary to know what the instruction is actually doing. (c) Repeat (b) using 2 address instructions (d) Repeat (b) using 1 address instructions (e) Write a program to evaluate the above arithmatic statement using the 3 address instructions set you designed.


We have an Answer from Expert

View Expert Answer

Expert Answer



We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe