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
Counting calculus students. About A university offers 3 calculus classes: Math 2A, 2B and 2C. In both parts, you are given data
OleMash [197]

Answer:

Part (a) n(A∩B∩C) = 4

Part (b) n(A∪B∪C) = 54

Explanation:

n(A) = no. of students who took Math 2A

n(B) = no. of students who took Math 2B

n(C) = no. of students who took Math 2C

n(A∩B) = no. of students who took both Math 2A and 2B

n(A∩C) = no. of students who took both Math 2A and 2C

n(B∩C) = no. of students who took both Math 2B and 2C

n(A∩B∩C) = no. of students who took all three Math 2A, 2B and 2C

n(A∪B∪C) = no. of total students in a group

∩ represents Intersection and ∪ represents Union

Part (a)

n(A∪B∪C) = n(A) + n(B) + n(C) - n(A∩B) - n(A∩C) - n(B∩C) + n(A∩B∩C)  

Where n(A∩B∩C) represents the number of students who took all three classes and n(A∪B∪C) represents the total number of students in group A

157 = 51 + 80 + 70 - 15 - 20 - 13 + n(A∩B∩C)

Re-arranging the equation to solve for n(A∩B∩C) since we want to find out those students who took all three classes

n(A∩B∩C) = 157 - 51 - 80 - 70 + 15 + 20 + 13

n(A∩B∩C) = 4

So there are 4 students in group A who took all three classes

Part (b)

n(A∪B∪C) = n(A) + n(B) + n(C) - n(A∩B) - n(A∩C) - n(B∩C) + n(A∩B∩C)

This time we are given n(A∩B∩C) students who took all three classes and want to find n(A∪B∪C) that is total number of students

n(A∪B∪C) = 28 + 28 + 25 - 11 - 9 - 10 + 3

n(A∪B∪C) = 54

So there are total 54 students in group B

8 0
4 years ago
A computer emergency response team is called at midnight to investigate a case in which a mail server was restarted. After an in
ANEK [815]

<u>Answer</u>:   B. Identify the source of the active connection

<em>Any problem can be fixed only finding of the source of it. We can fix a problem in ‘n’ number of ways but it might again come back if source of it is not identified.</em>

<u>Explanation:</u>

Identify the source of the active connection is the NEXT step the team should take. It is very similar to our human body.

If the infection is coming in the body again and again and gets fixed in the treatment, the reason for come - back will be identified so that it does not <em>lead to unnecessary treatment. </em>

In a similar way, if source are identified then the problem of come-back can be avoided. <em>So option B would be the right choice.</em>

4 0
4 years ago
PYTHON
Korvikt [17]

Answer:

import random

print("Hello! I have a random number from 1 to 100! It is your job to try and guess it!")

number = random.randint(1,101)

guess = int(input("start to guess: "))

num_guesses = 1

while guess != number:

   if guess > number:

       print("lower")

       guess = int(input("try again: "))

       num_guesses +=1

   elif guess < number:

       print ("higher")

       guess = int(input("start to guess: "))

       num_guesses +=1

print("congrats it took you", num_guesses, "tries")

Explanation:

6 0
3 years ago
Effective presentations must have _____.
kherson [118]
A clear central message
6 0
3 years ago
Read 2 more answers
Find the cost of 2m 20cm at 25p per metre​
juin [17]

Answer:

length * cost per unit

2.2*25

= 50 pounds

5 0
3 years ago
Other questions:
  • Prompt the user to input an integer, a double, a character, and a string, storing each into separate variables. Then, output tho
    9·1 answer
  • What is one strengths of line graph? a) Line graphs show percentage in a whole b) Line graphs show change over time c) Line grap
    13·2 answers
  • Why was the movable type of the printing press such a breakthrough for publishing?
    15·2 answers
  • Explain how to implement two stacks in one array A[1..n] in such a way that neither stack overflows unless the total number elem
    7·1 answer
  • An increase in the Money Supply will increase the Aggregate Price Level and will also increase which of the following?
    14·1 answer
  • What feature is available to add a suggestion in the margin of someone else's document?
    7·1 answer
  • When using a function to preform a calculation how would you select the range of numbers to use
    13·1 answer
  • Daniel owns a construction company that builds homes. To help his customers visualize the types of homes he can build for them,
    6·1 answer
  • The programs in a computer are called
    7·1 answer
  • 1. Identify a local or regional cause or issue for Social Change related to specific professional tracks that can be addressed o
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!