Sprites are program objects used to create animations
What should be done to fix the error is to (d) Change "turn right 90 degrees" to "turn left 90 degrees"
How to fix the error
From the question, we have the following highlights
- The sprite is to move forward
- And then turns around
The first line of the code segment moves the sprite 20 steps forward;
This step is correct, and it does not need to be changed.
For the sprite to turn, then it must rotate 360 degrees in a direction.
From the code segment, we have the following rotations
- 180 degrees left
- 90 degrees left
- 90 degrees right
When the angles of rotation are added, we have:
[tex]\theta = 180 + 90 - 90[/tex]
[tex]\theta = 180[/tex]
i.e. the code segment implements a 180 degrees rotation
In order to turn the sprite around, she needs to change the 90 degrees right to 90 degrees left.
So, we have:
[tex]\theta = 180 + 90 + 90[/tex]
[tex]\theta = 360[/tex]
Hence, the fix to the error is (d) Change "turn right 90 degrees" to "turn left 90 degrees"
Read more about sprites at:
https://brainly.com/question/26549550