Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In this program, we will find the smallest value among three values that stores in variables num 1 , num 2 , and num 3
In this program, we will find the smallest value among three values that stores in variables num num and num and then stores the smallest value in the variable s Here is how we do it
if num is smaller than or equal to num set s num otherwise, s num
compare num and s if num is smaller than or equal to s set s num
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 num Input
READ num Input
SMALLEREQUALS Input Input
JSE
JUMP
READ num Input
READ s Input
SMALLEREQUALS Input Input
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started