1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Elza [17]
2 years ago
14

Elena wrote the following code in Scratch to have the sprite move and then turn around. However, the code does not work as expec

ted. 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"

Computers and Technology
1 answer:
polet [3.4K]2 years ago
4 0

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"

<h3>How to fix the error</h3>

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:

\theta = 180 + 90 - 90

\theta = 180

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:

\theta = 180 + 90 + 90

\theta = 360

Hence, the fix to the error is (d) Change "turn right 90 degrees" to "turn left 90 degrees"

Read more about sprites at:

brainly.com/question/26549550

You might be interested in
Why should you delete files from your computer? (multiple answers can be chosen)
Morgarella [4.7K]
<span>to increase the computer's efficiency

The more files it holds, the more "jobs" it has to run, which means that you're computer would be using the same amount of energy running all of them as to less of them. When you close (or delete) some files, it allows the computer to concentrate on only running a smaller amount of files as oppose to a large amount

hope this helps</span>
5 0
4 years ago
Read 2 more answers
I need help under standing an assignment, I've contacted my teacher but I want to finish this class already. Here's the directio
Verizon [17]

Answer: So have you done assignment 5? and have you read back the previous one?

8 0
4 years ago
HURRY
Irina-Kira [14]

<em>Your answer is B: cooperative player-to-player interaction</em>

<em></em>

<em></em>

<em />

6 0
4 years ago
A. experiment by purposely misconfiguring the gateway address on pc-a to 10.0.0.1. what happens when you try and ping from pc-b
MrRa [10]
Yes you will mate, hope this helps!
7 0
3 years ago
Louis is a civil engineer and wants to use a line on a floor plan that is indicative of the position from which a section is tak
frutty [35]

Answer:

A

Explanation:

horizontal line

8 0
3 years ago
Read 2 more answers
Other questions:
  • This stores a piece of data and gives it a specific name
    7·1 answer
  • ‘Bottom of the pyramid’ innovation refers to ancient Egyptian approaches to new product development – true or false?
    8·1 answer
  • You are the network administrator for Slimjim, a peripheral device company. The network uses Linux, and you need information on
    10·1 answer
  • A building is equipped with light sensors that turn off the fluorescent lights when natural light is above a certain brightness.
    5·1 answer
  • Write a program that uses a two-dimensional array to store the highest and lowest temperatures for each month of the year. Promp
    10·1 answer
  • Why 3 phase motors so effective?
    5·1 answer
  • List three different sets of keywords that could be used to search for information on how to
    15·1 answer
  • Which element is represented by the electron configuration in example B? Example B: 1s22s22p63s23p64s1 Aluminum Cesium Potassium
    12·2 answers
  • 8. The cell reference for a range of cells that starts in cell A1 and goes over to column G and down to row 10 is, a. A1-G10 b.
    7·1 answer
  • Help me with this two questions please
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!