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
Marina CMI [18]
3 years ago
12

Write a program that will draw a red circle on top of a blue square in the center of the canvas. The blue square should have sid

es of 100 pixels each and the red circle should have a diameter of 100 pixels
it's thru codehs and it's due tomorrow so
Computers and Technology
1 answer:
MakcuM [25]3 years ago
3 0

Answer:

Explanation:

The following code is written in Python. It uses the imports the turtle class in order to be able to draw a blue square with 100pixels per side and then a red circle with a diameter of 100 pixels that fits perfectly inside the square.

import turtle

t = turtle.Turtle()

#Make Square

t.fillcolor('blue')

t.begin_fill()

t.back(50)

for i in range(4):

 t.forward(100)

 t.left(90)

t.end_fill()

#Make Circle

t.forward(50)

t.fillcolor('red')

t.begin_fill()

t.circle(50)

t.end_fill()

You might be interested in
What form of contacts can be shared in Outlook 2016?
ArbitrLikvidat [17]

Answer:

shared contacts

Explanation:

5 0
4 years ago
Read 2 more answers
What is the correct order for writing the 3 dimensions for a 3D object? Here are the 3 dimensions:
Nady [450]

Answer:

Length x Width x Hight

Explanation:

3 0
3 years ago
The two roots of a quadratic equation, for example 2 + + = 0, can be obtained using the following formula: Two Roots: 1 = − + √
Vladimir79 [104]

lst = input("Enter a,b,c: ").split(",")

a = float(lst[0])

b = float(lst[1])

c = float(lst[2])

root1 = (-b + ((b**2-(4*a*c))**0.5))/(2*a)

root2 = (-b - ((b**2-(4*a*c))**0.5))/(2*a)

dis = b**2 - (4*a*c)

if dis > 0:

   print("The roots are {} and {}".format(root1, root2))

elif dis < 0:

   print("The equation has no real roots")

else:

   print("The root is {}".format(root1))

I wrote my code in python 3.8. I hope this helps!

5 0
3 years ago
What does it mean by “Your circles should shrink by half” sorry if this isn’t a clear picture.
damaskus [11]

Answer:

I'm not seeing anything so sorry

5 0
3 years ago
Create a UNIX style daemon process that will watch a folder and respond to specific file operations that occur in that folder. T
harina [27]
It would be better for the bets to gets it done. So you would finish it as usuals like your compressor quiz
6 0
3 years ago
Other questions:
  • TCP has a 32-bit sequence number field and 16-bit advertised window field. Assume that RTT is 512 (2 9 ) ms, transmission speed
    6·1 answer
  • When using the strcat function, you must be careful not to overwrite the bounds of an array?
    5·1 answer
  • Why are computer programs so much longer now than they were in the late 1980?
    8·1 answer
  • A number of related records that are treated as a unit is called
    6·1 answer
  • The number of bytes in an array is always a multiple of the number of ____ in an array.
    6·1 answer
  • Late at night, some traffic signals change patterns and become _____.
    9·2 answers
  • Which is the hanging indent on the ruler?
    10·2 answers
  • The Circle and CircleTester have been created, but they have errors. The public and private settings for variables and methods a
    8·1 answer
  • guys look at this https://brainly.com/app/profile/17971193/answers i need help and tips to get this cute girl to give me her num
    14·2 answers
  • Who is responsible for maintaining, monitoring, and analyzing database security at the back end?
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!