Really hesitant to ask this question, but it appears that the answer key has an error - either that or I have a horrible misunderstanding of the pseudocode. Probably the latter, but thanks for any help you can give!
The second and third “you try it’s” for the nested if statements look wrong.
Here’s the second one:
IF (CAN_MOVE (forward)) ----this is a “yes” so it would do the if statement
{
IF (CAN_MOVE (left)) -----this is a “no” since it hasn’t moved forward yet
{
ROTATE_LEFT () -----skip
}
ELSE{
ROTATE_RIGHT () ---------would rotate right
}
MOVE_FORWARD () ------would move forward
}
ELSE ----would skip the whole else statement
{
ROTATE_LEFT ()
ROTATE_LEFT ()
}
MOVE_FORWARD () -----would move forward and crash
Hi Baker,
We just had a spirited discussion about the answer key at our LA workshop today, even after seeing that you reviewed the key two weeks ago. I told them your word was as good as gold, but they weren’t convinced.
I’m thinking we need to point teachers (and students) to the College Board documentation which defines the commands for the pseudocode. Teachers needed clarification about how the “CAN_MOVE ( )” command works. Once they have agreed on the definitions, I think they will be happy with the answer key.
Definition of CAN_MOVE() is in the purple book. I believe I just copy/pasted it into the “Will it Crash” activity.
My word is DEFINITELY NOT good as gold for the answer keys - I make mistakes all the time, and trip myself up on my own logic. Especially in cases where I re-worked certain puzzles I’m sure some mistakes linger.
If there are issues, let me know and I can fix immediately. Thanks,