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
MArishka [77]
2 years ago
12

6. Write a program that asks the user for the number of sides, the length of the side, the color,

Computers and Technology
1 answer:
kupik [55]2 years ago
3 0

import turtle

s = turtle.Screen()

t = turtle.Turtle()

sides = int(input("Enter the number of sides: "))

length = int(input("Enter the length of the side: "))

col = input("Enter the color of your polygon: ")

t.fillcolor(col)

t.begin_fill()

for x in range(sides):

   t.forward(length)

   t.right(360/sides)

t.end_fill()

s.mainloop()

I hope this helps!

You might be interested in
Prove that the dual of the exclusive-OR gate is also itscomplement
Tresset [83]

Answer:

Explanation:

The dual of a function means replace AND with OR and replace OR with AND.

XOR gate of A , B is

A \, XOR\, B = AB' + A'B

So, Dual of A XOR B is ( replace AND with OR and OR with AND)

= (A+B')(A'+B)

Complement of A XOR B is (A XOR B) ' = (AB' + A'B) ' = ((A)' + (B')') ((A')' + (B)') = (A'+B)(A+B') (In finding compliment AND becomes OR and OR becomes AND ).

By inter changing the above product of terms  

Complement of A XOR B = (A + B') (A' + B)

So, Dual of A XOR B = Complement of A XOR B.

7 0
3 years ago
What is the troubleshooting process?
sattari [20]
<span>It is a logical, systematic search for the source of a problem in order to solve it, and make the product or process operational again.Troubleshooting is needed to identify the symptoms. ...Troubleshooting is the process of isolating the specific cause or causes of the symptom.</span>
6 0
2 years ago
In the LC-3, how many memory words are used to store the string "rainbow"?
oksian1 [2.3K]
The number of memory words used to store the string "rainbow" is 8.
5 0
3 years ago
The BIOS feature that enables a hard drive to read or write several sectors at a time is called what?
lukranit [14]

The BIOS feature that enables a hard drive to read or write several sectors at a time is called IDE block mode

Explanation:

IDE block mode setting speeds up IDE drivers when enabled by allowing multiple sectors to read or write operations. This BIOS feature rushes up hard disk drive passage by transferring many divisions of data per interrupt rather than using the normal single-sector transfer mode.

This mode of transfer is known as block transfers. When block transfers are enabled, depends on the IDE controller, nearly 64 KB of data can be transferred per interrupt.

4 0
3 years ago
What is a fixed expense<br> everfi
Gelneren [198K]

Answer:

A fixed expense is an expense that has a constant total expense value (the total amount of the fixed expense) that remains the same (does not change) when there is a change in the number being managed, manufactured, or sold

Examples of fixed  expense includes; depreciation of assets, salaries of workers, payment for rental lease, and some utility payment, such as road users toll fees payment at a toll gate

Explanation:

8 0
2 years ago
Other questions:
  • Which line of code will generate a random integer between 7 and 77?
    10·1 answer
  • You can apply several different worksheet themes from which tab?
    10·2 answers
  • Pick 2 different operating systems and discuss how they can be used in daily operations.
    5·1 answer
  • Direct Mapped Cache. Memory is byte addressable. Fill in the missing fields based upon the properties of a direct-mapped cache.
    6·1 answer
  • Write a program that reads in ten numbers and displays the number of distinct numbers and the distinct numbers separated by exac
    7·1 answer
  • Next, Kim decides to include a diagram of a frog’s life cycle in her presentation. She wants to use an image that is part of a p
    15·2 answers
  • Privacy Group of answer choices must be respected if we are to function as complete, self-governing agents is an absolute value
    5·1 answer
  • Katy and her associates are approached by an aged tai chi expert to create a website for him. From her participation in an onlin
    9·1 answer
  • Why computer manufacturers constantly releasing faster computers ?
    14·1 answer
  • What was the name of the first computer, developed by charles babbage?.
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!