Question: 11. Given the following pseudocode: Set num to 10 WHILE (num is greater than ) Print num Set num to num - 2 a. [4]
11. Given the following pseudocode: Set num to 10 WHILE (num is greater than ) Print num Set num to num - 2 a. [4] Trace the program by writing the values of variables, conditions, and printout in a table (shown below). num num > 0 printout 10 True 10 b. [4] Write the pseudocode in Super Simple CPU Assembly language. c. [1] Explain the function of the program in one sentence. (Hint: For the function of the program, you can explain the printout of the program)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
