Question 4: Provide a trace (similar to the one in Figure 4.14) for Example 4.2.

100 If, Load X /Load the first value

101 Subt Y /Subtract the value of Y, store result in AC

102 Skipcond 400 /If AC=0 (X=Y), skip the next instruction

103 Jump Else /Jump to Else part if AC is not equal to 0

104 Then, Load X /Reload X so it can be doubled

105 Add X /Double X

106 Store X /Store the new value

107 Jump Endif /Skip over the false, or else, part to end of if

108 Else, Load Y /Start the else part by loading Y

109 Subt X /Subtract X from Y

10A Store Y /Store Y-X in Y

10B Endif, Halt /Terminate program (it doesn't do much!)

10C X, Dec 12 /Assume these values for X and Y

10D Y, Dec 20

Load X

100 If, Load X /Load the first value

101 Subt Y /Subtract the value of Y, store result in AC

102 Skipcond 400 /If AC=0 (X=Y), skip the next instruction

103 Jump Else /Jump to Else part if AC is not equal to 0

104 Then, Load X /Reload X so it can be doubled

105 Add X /Double X

106 Store X /Store the new value

107 Jump Endif /Skip over the false, or else, part to end of if

108 Else, Load Y /Start the else part by loading Y

109 Subt X /Subtract X from Y

10A Store Y /Store Y-X in Y

10B Endif, Halt /Terminate program (it doesn't do much!)

10C X, Dec 12 /Assume these values for X and Y

10D Y, Dec 20

Load X

### Recently Asked Questions

- On January 1, you started a tutoring business called Brain Worx and charge $30 an hour for tutoring. The following are your transactions for 2017. a. On

- Use induction to show that ï»¿ 1^3 ï»¿ + ï»¿ 2^3 ï»¿ + ... + ï»¿ n^3 ï»¿ = ï»¿ \frac{n^2(n+1)^2}{4} ï»¿ for all integers n â¥ 1.

- Write a proffesional email where u can bring one form of advertisinh that would target people between 18-30. Attached is the full question.