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
Bogdan [553]
3 years ago
6

This graphics program should draw a caterpillar. A caterpillar has NUM_CIRCLES circles. Use a for loop to draw the caterpillar,

centered vertically in the screen. Every other circle is a different color. When i is even, the circle should be red. When i is odd, the circle should be green. Remember that 0 is an even number. Be sure that the caterpillar is still drawn across the whole canvas even if the value of NUM_CIRCLES is changed. (PYTHON, CODEHS 4.6.6 Caterpillar.)
Computers and Technology
1 answer:
bearhunter [10]3 years ago
7 0

Answer:

radius = (get_width() / NUM_CIRCLES / 2)

x = radius

for i in range(NUM_CIRCLES):

   circ = Circle(radius)

   if i % 2 == 0:

       circ.set_color(Color.red)

   else:

       circ.set_color(Color.green)

   circ.set_position(x, get_height() / 2)

   add(circ)

   current_spot = x

   x = current_spot + (radius * 2)

Explanation:

You might be interested in
*PLEASE ANSWER QUICK*
dezoksy [38]

Answer:

pretty sure its insert.

Explanation:

8 0
3 years ago
Read 2 more answers
Database Management Systems are featured with:
Olin [163]

Answer:

Answer: Database Management Systems are featured with:​ The ability to store a large amount of data to facilitate easy updates, short, and retrieval.

Explanation: I took the test

6 0
3 years ago
Read 2 more answers
SMART PEOPLE NEEDED
mario62 [17]
D doesn't make much sense, it's valid, but not what we're looking for. B also has a correlation with D, same reasoning applies. As for A, it seems pretty legit, but I don't believe that's what we're looking for.

Choice C is the most obvious one though. We're talking about a network and as may or may not know it's a wireless one in a manner of speaking. A <span>couple of computers in the network that have trouble maintaining a signal will indefinitely lead to failure of a network since both the links and nodes of certain computer systems are incapable of maintaining a signal. </span>
6 0
3 years ago
Sending messages electronically to one or more recipients is called
maks197457 [2]

Answer:

Forward all

Explanation:

7 0
3 years ago
Read 2 more answers
Over the years, workplace discrimination has become________.
natta225 [31]

Over the years, workplace discrimination has become more subtle.

5 0
3 years ago
Other questions:
  • Which Internet appliance can take action to potentially stop a network attack from taking place?
    6·1 answer
  • intext:"The browser feature which enables tabs to work independently from one another so if one crashes, the others may continue
    12·1 answer
  • ________ is the standard communications protocol used on most client/server networks.
    9·1 answer
  • Host to IP address lookup and its reverse lookup option are very important network services for any size network. It is also how
    9·1 answer
  • when you enter a formula in a cell the result of the calculation displays in a cell. how do views of formula after entering it?
    9·2 answers
  • How are PivotCharts different from regular charts?
    12·1 answer
  • Write a JavaScript program to create a multiplication table for numbers 1 to 12 using a while loop. I’ll mark brainliest, thanks
    9·1 answer
  • PLEASE HELP!! I just joined this school and it was a online day but I didn’t have time to study because I’m new please help me i
    5·1 answer
  • What is folded card publishing?​
    5·2 answers
  • The largest amount of data, in bytes, which can be accomodated by a particilar network, link, or physical-layer is called the?
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!