Question: Given the MARIE machine level code in the following: Address Label Instruction 100 | If, Load X 101 | Subt Y 102 | Skipcond 400

Given the MARIE machine level code in the following:

Address Label Instruction

100 | If, Load X 101 | Subt Y

102 | Skipcond 400 103 | Jump Else

104 | Then, Load X

105 | Add X 106 | Store X

107| Jump Endif

108| Else, Load Y

109| Subt X 10A | Store Y

10B| Endif, Halt

10C| X, Dec 12

10D| Y, Dec 20

A. Please explain what the program does by rewriting the pseudo code in high-level programming like Java or C++ and give the value in AC after executing the program.

B. If we change the value of X to 20, i.e.

10C | X, Dec 20

What is the value in AC after executing the above program then?

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!