Trace the following algorithm. The book presents two ways to do tracing–a short form and a long form. To give you a head start, the setup for the short form and also the long form are given below. For your answer, pick one setup and use it. Skip the other setup.
1 num ← 22 count ← 13 while count<54 {5 count ← count * num6 if count / 2<27 print “Hello”8 else9 while count<710 {11 count ← count + 112 }13 print “The count is” + count + “.”14 }Short-from setup:
num count output
Long-form setup:
line#
num
count
output
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.