Question: Write a program to solve the equation: w = 5 0 0 x 2 1 4 y z 3 if z < 1 2 and

Write a program to solve the equation:
w =500 x
214y z
3
if z <12 and
w =100017x y
237z if z >12.
Manually store x, y and z in DM [5000], DM [5004], and DM [5008],
respectively.
Use the sub instruction at least 3 times.
Store your result in DM [5012].
Test your code using: x =7, y =24, and z =9,
x =13, y =8, and z =12, and
x =5, y =6, and z =29

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 Programming Questions!