Question: instruction will be executed. JUMP [ Line # ] : Set the address of the next instruction to execute to that of the indicated line

instruction will be executed.
JUMP [Line #] : Set the address of the next instruction to execute to that of the
indicated line number
Problem 3(1 point) In this program, we will find the smallest value among three values that
stores in variables num1, num2, and num3, and then stores the smallest value in the variable s.
Here is how we do it.
if num1 is smaller than or equal to num2, set s= num1, otherwise, s= num 2
compare num3 and s, if num 3 is smaller than or equal to s, set s= num 3
Please fill in the blanks below so that the program performs the correct instructions.
Note: You should not need to create any temporary variables, and you should not change the
values of any variables. Keep in mind that the program will jump if SMALLEREQUALS is true,
the program will continue as normal if it is false. Also, both writing and reading are between
register and memory, not among variables in the memory.
READ num1 Input-1
READ num2 Input-2
SMALLEREQUALS Input-1 Input-2
JSE
JUMP
READ num3 Input-1
READ s Input-2
SMALLEREQUALS Input-1 Input-2
 instruction will be executed. JUMP [Line #] : Set the address

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!