Question

please do in python and please make the kink work in general

 
2.0
15
10
0.5
0.0
-0.5
0.0
0.5
10
15
2.0
Write below the kinked polygon function.
[1 def kink polygon(poly):
# YOUR CODE HERE
#TA wrote
pe, p1, p2, p3 kink(pe, p1)
p1, p2
p2, p3
so on..
return all points generated by those points(on above image) (then draw)
Expand
Transcribed Image Text

2.0 15 10 0.5 0.0 -0.5 0.0 0.5 10 15 2.0 Write below the kinked polygon function. [1 def kink polygon(poly): # YOUR CODE HERE #TA wrote pe, p1, p2, p3 kink(pe, p1) p1, p2 p2, p3 so on.. return all points generated by those points(on above image) (then draw)

Expert Answer

Want to see the step-by-step answer?

Check out a sample Q&A here.

Want to see this answer and more?

Experts are waiting 24/7 to provide step-by-step solutions in as fast as 30 minutes!*

*Response times may vary by subject and question complexity. Median response time is 34 minutes for paid subscribers and may be longer for promotional offers.
Tagged in
Engineering
Computer Engineering

Programing

Related Computer Engineering Q&A

Find answers to questions asked by students like you.

Q: The following are the ending balances of accounts at December 31, 2021, for the Valley Pump Corporat...

A: Balance sheet is one of the financial statement of business which indicates about the financial posi...

Q: When you have an exclusive contract with a real estate agent, you can Select the best answer. still ...

A: when you have an exclusive contract with a real estate agent, you can:

Q: Which of the points A(-4, 0, -1). B(3, 1, -1), and C(2, 4, 6) is closest to the yz-plane? Which poin...

A: Click to see the answer

Q: If the region R= {(x,y)} │x≥1,0 ≤y ≤ 1/x} is rotated about the x-axis the volume of the resulting so...

A: Given, the region R=x,y | x≥1,0≤y≤1x is rotated about the x-axis the volume of the resulting solid i...

Q: Calculate the index of hydrogen deficiency of these compounds. (a) Aspirin, C9H8O4 (b) Ascorbic acid...

A: Click to see the answer

Q: A regulation NBA basketball has a surface area of 283 square inches What is the surface area of this...

A: Click to see the answer

Q: The table shows the position of a motorcyclist after accelerating from rest. t (seconds) 1 2 3 4 5 6...

A: Given : Time and position table is given. We find velocity for each intervals

Q: 1. List three examples of qualitative data observations that could be obtained from the photograph o...

A: The qualitative observations are : They are golden brown in color. They live in a group. They eat a...

Q: Technician A says that the throttle position is an input to the PCM. Technician B says that the brak...

A: When brake pedal switch is pressed it sends an input to the PCM to maintain idle speed of a predefin...

Q: On each chair structure identify the relationship of the substituents as cis or trans?

A: Click to see the answer

Q: A meteor falls toward Earth's surface. Given that the acceleration due to gravity is 9.8 m/s^2, what...

A: Given: The mass of the object is 50 kg. The acceleration due to gravity is 9.8 m/s. Then altitude is...

Q: A snowboarding competition site is using a new design for the parallel giant slalom. The designer of...

A: Test is that whether there is a difference in the mean completion times for men and women.  

Q: You are driving 65 mi/h and take your eyes off the road for “just a second.” Whatdistance (in feet) ...

A: Given data contains, Velocity is 65 mi/h.

Q: Mark, whose parents are wealthy, has been socialized to believe that he can be whoever he wants to b...

A: Every real-life encounter or situation can be explained and associated with numerous sociological pe...

Q: In a board game, a certain number of points is awarded to a player upon rolling a six sided die (lab...

A: Click to see the answer

Q: What is the pH of a 0.031 M solution of aqueous Sr(OH)2? A)12.49 B)1.51 C)12.79 D)1.21

A: Click to see the answer

Q: Becky has 30 T-shirts ina drawer: 12 concert shirts, 8 team shirts, and 10 plain shirts. Of the 10 s...

A: Click to see the answer

Q: Following are the accounts and balances (in random order) from the adjusted trial balance of Stark C...

A: 1. Income statement:

Q: Electrons got ejected out as if they were ping pong balls by the light particle (photon).  Electrons...

A: This is a phenomenon of the photoelectric effect, in which electrons are ejected from the surfaces o...

Q: Database A contains 40 data items and is made up with an equal number of the values of 0 and 100 and...

A: Click to see the answer

Q: Laiho Industries's 2020 and 2021 balance sheets (in thousands of dollars) are shown.   Laiho Indus...

A: Hi, since you have asked a question with multiple subparts we are solving the 1st 3 subparts for you...

Q: Write theatomic symbol (A/Z X) for each of the following isotopes. a. Z=8, number of neutrons=9 b. t...

A: For a:

Q: The pressure of a fluid flowing through a closed​ system, P, after t seconds can be modeled by the f...

A: Here we are going to solve only 2 subparts and for the remaining subpart please post the question ag...

Q: In May of 2017, congressional leaders introduced the Raise the Wage Act, which would raise the feder...

A: The wage increase was promoted by the "Fight for $15" union. Although it was not supported by differ...

Q: Someone just robbed a bank. The police set a triangular perimeter of 16 kilometers where the robber ...

A: Now let the third coordinate be:  C = (x, y) Given: Perimeter of triangle is:  16 km Area of triangl...

Q: Include correctly labeled diagrams, if useful or required, in explaining your answers. A correctly l...

A: If the government and the Federal Reserve take no policy action in response to the recession - The s...

Q: A storage bin in the corner of Joe's room has the dimensions shown below. What is the volume of the ...

A: We can make it easier for you.

Q: The table below contains data on Fincorp Inc. The balance sheet items correspond to values at year-e...

A: Cash flow statement is a statement showing the flow of cash in an organization from 3 main categorie...

Q: Richard has just been given a 8-question multiple-choice quiz in his history class. Each question ha...

A: Number of trials, n = 8 P(correct answer), p = 1/5 = 0.2 q = 1 - p = 0.8 a) P(he will answer all que...

Q: Annual revenue for Corning Supplies grew by 5.5% in 2010, 1.1% in 2011, -3.5% in 2012, -1.1% in 2013...

A: The annual growth rate represents the percentage of amount which is increased in 1 year. For example...

Q: The marketing team at an internet music site wants a better understanding of who their customers are...

A: See hand written answer

Q: O Home 1-2 Discussion: Introduction - x zy Section 1.23 - IT 140: Introduct x This ZyLab Activity Pr...

A: Given:

Q: 10. A person is driving along a straight highway at a speed of 22.0 m/s when the traffic light which...

A: Click to see the answer

Q: Radio Frequency (RF) signals are a subset of the electromagnetic (EM) spectrum.  Optical signals are...

A: Radio Frequency (RF) signals are a subset of the electromagnetic (EM) spectrum. Optical signals are ...

Q: A boat is heading towards a lighthouse, whose beacon-light is 110 feet above the water. The boat's c...

A: By the use of simple trignometric function

Q: Where can you initiate a Credit Memo in QuickBooks Online? (Choose 2)(Select all that apply)   A. G...

A: To  initiate a Credit Memo in QuickBooks Online

Q: different types of pulpal stimuli such as thermal, bacterial, and electrical and how sensitivity dri...

A: When evaluating a restorative material, three main components should be considered: durability, func...

Q: Indicate the changes (using the shorthand representation) that you would need to make the original K...

A:   Indicate the changes (using the shorthand representation) that you would need to make the original...

Q: A homeowner wants to determine the total capacity, in liters, of a water heater. The homeowner measu...

A: Given: Temperature T1 of water at time, t = 280C Volume V1 of water at that time, t = 60 L Temperatu...

Q: While traveling to Europe, Phelan exchanged 250 US dollars for euros. He spent 150 euros on his trip...

A: Given  Total US dollars Phelan has 250. Euros spent by Phelan on his trip = 150 

Q: e. Both deliveries were intended to deliver "4 mL". For both the pipet and graduated cylinder, deter...

A: 1. The number of significant figures for the graduated cylinder is 4.00 mL. Reason:  The beaker volu...

Q: Which description accurately represents a water molecule?(1 point) A:slightly negative oxygen pole...

A: Click to see the answer

Q: A copper wire (density = 8.96 g/cm3) has a diameter of 0.25 mm. If a sample of this copper wire has ...

A: Given: Density = 8.96 g/cm3 Diameter= 0.25mm Mass of the wire = 22g To find: The length of the wire

Q: 1.23 LAB: Warm up: Variables, input, and type conversion (1) Prompt the user to input an integer bet...

A: Source Code: #take int,float,character and string input from user   user_int=int(input('Enter intege...

Q: John Sullivan started a business. During the first month, the following transactions occured. Show t...

A: Click to see the answer

Q: Use the table to the right to answer the following question. Energy (joules) Item Compare the energy...

A: Click to see the answer

Q: How far did they calculate out before making that decision … 1000 places ….10, 000 places? How many ...

A: Given: To explain the given statement as follows,

Q: Consider the following algorithms. Each algorithm operates on a list containing n elements, where ni...

A: Below is the simplified answer to the above listed problem MCQ problem:

Q: Aspirin (C9H8O4) is synthesized by reacting salicylic acid (C7H6O3) with acetic anhydride (C4H6O3). ...

A: Given: Mass of salicylic acid = 1.00 x 102g= 100g To find: The mass of acetic anhydride Maximum mass...

Q: What is the color of FeC2O4 and K3[Fe(C2O4)3]·3H2O?

A:   Name of.  FeC2O4     Ferrous oxalate, or iron(II) oxalate,      Preparation of K3[Fe(C2O4)3]·3H2O ...