Instructions: The first three problems ask you to read a Pseudocode function definitions. Trace through each of them by hand, keeping track of the variables, to determine the answer to the question.
# Comment: A function definition that takes 1 parameter To functionA(a): Return: a + 100
# Comment: A function with 2 parameters
To functionB(m,n):
Set Var to m
Set m to m + 1
While M <= N do:
Set Var to Var + m
Set m to m + 1
Return Var
# Comment: A mystery function
To mystery(x, y):
Set M to x
If y < x then do:
Set M to y
Return M
Instructions: The next three problems ask you to define a
function in Pseudocode. Model your answers after the Pseudocode
algorithms in the first 3 questions.