Instructions: The first three problems ask you to read a Pseudocode algorithm. Trace through each of them by hand, keeping track of the variables, to determine the answer to the question.
Set Var to 100 Set N to 3 Set Var to Var - N If Var < 97 then do: Set Var to 0 else-do: Set Var to 1
Set Var to 1 Set N to 0 While Var < 16 do: Set Var to Var * 2 Set N to N + 1
# Comment: A mystery procedure in Pseudocode
To DoSomethingInteresting
Set Var to 0
Set N to 1
While N < 10 do:
Set Var to Var + N
Set N to N + 2
Instructions: The next three problems ask you to write a Pseudocode
algorithm. Model your answers after the Pseudocode algorithms in the first there questions.