Instructions: The first two 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 argument To functionA(a): Return: a * a - a
# Comment: A mystery function
To mystery(X, Y):
If X = Y then do:
Return X * Y
If X > Y then do:
Return X - Y
else do:
Return Y - X
Instructions: The next two problems ask you to define a
function in Pseudocode. Model your answers after the Pseudocode
algorithms in the first 2 questions.