Elena wrote the following code in Scratch to have the sprite move and then turn around. However, the code does not work as expected. What should be done to fix the error?

Change "move 20 steps" to "move 10 steps"
Change "turn left 180 degrees" to "turn left 90 degrees"
Change "turn left 90 degrees" to "turn right 180 degrees"
Change "turn right 90 degrees" to "turn left 90 degrees"

Elena wrote the following code in Scratch to have the sprite move and then turn around However the code does not work as expected What should be done to fix the class=

Respuesta :

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