Answered step by step
Verified Expert Solution
Link Copied!

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 num1, num2, and num3, and then stores the smallest value in the variable s. Here is how we do it.
1. if num1 is smaller than or equal to num2, set s = num1, otherwise, s = num2
2. compare num3 and s, if num3 is smaller than or equal to s, set s = num3
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.
1. READ num1 Input-1
2. READ num2 Input-2
3. SMALLEREQUALS Input-1 Input-2
4. JSE
5.
6. JUMP
7.
8. READ num3 Input-1
9. READ s Input-2
10. SMALLEREQUALS Input-1 Input-2
11.

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

More Books

Students also viewed these Databases questions

Question

mutual trust and teamwork;

Answered: 1 week ago

Question

2. Discuss the steps in preparing a manager to go overseas.

Answered: 1 week ago