Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Given the MARIE simulator machine level code in the following: If, Load X Subt Y Skipcond 400 Jump Else Then, Load X Add X Store

Given the MARIE simulator machine level code in the following:

If, Load X

Subt Y

Skipcond 400

Jump Else

Then, Load X

Add X

Store X

Jump Endif

Else, Load Y

Subt X

Store Y

Endif, Halt

X, Dec 12

Y, Dec 20

a) Please explain what the program does.you can rewrite the pseudo code in high-level programming like Java or C++ if it helps. also, give the value in AC after executing the program

(b) If we change the value of X to 20, i.e. 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Management Databases And Organizations

Authors: Watson Watson

5th Edition

0471715360, 978-0471715368

More Books

Students also viewed these Databases questions

Question

How do Excel Pivot Tables handle data from non OLAP databases?

Answered: 1 week ago