COMPUTER ORGANIZATION AND ARCHITECTURE Using the above Marie

COMPUTER ORGANIZATION AND ARCHITECTURE

Using the above Marie Instruction Set to implement the following algorithm:
code the following:
Input a number in decimal from the keyboard store the number in location X
Input a number in decimal from the keyboard store the number in location Y If X < 0 then X = X + 6 Else X = Y + X Endif Display X using the output instruction (make sure your Input and output Window is set to Dec when testing the program)
At the end of the program after the Halt instruction, define X, Y and set both to 0. Define another variable to hold the 6

Solution

my input = raw_input()

What are you waiting for?

Print my_input

What are you waiting for?

COMPUTER ORGANIZATION AND ARCHITECTURE Using the above Marie Instruction Set to implement the following algorithm: code the following: Input a number in decimal

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site