Please help me to work on the following question:
Consider the following sequence of steps:
1. count:=0
2. answer:=5
3. while count<=9 do
3.1 count:=count+2
3.2 answer:=answer+count
4. output answer
b. Construct a trace table to show the value of all variables.
c. What is the value of answer after 3 iterations of the for-do loop?
d. Is the sequence of steps an algorithm? Giv a reason for your answer.
Please help to solve the above problem.
Cheers,