Question: 2) COMP1, COMP2, COMP3 and COMP4 are different types of general register computers using 3, 2, 1 and 0 address instruction formats respectively. Consider the

 2) COMP1, COMP2, COMP3 and COMP4 are different types of general

2) COMP1, COMP2, COMP3 and COMP4 are different types of general register computers using 3, 2, 1 and 0 address instruction formats respectively. Consider the sequence of the arithmetic equations below. a) Write a program to evaluate these equations (all 3 of them sequentially together) for each computer . Use minimum number of instructions. X= A +(B - (C*D)) Y= A - (B+(C*D)) Z=Y-X b) Convert the arithmetic expression , (5+7)[12(3+9)+7], into reverse Polish Notation and show the stack operations in a table to get the numerical result

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 Databases Questions!