Write a function to draw three heights for a acute triangle via turtle. The input of the function are the coordinates of three vertexes.
WRITE THE CODE IN PYTHON AND SHOW OUTPUT.
from turtle import *
def drawAcute(one, two, three):
# going to the first coordinate
up()
goto(one[0], one[1])
down()
# drawing by going to the given coordinates
goto(two[0], two[1])
goto(three[0], three[1])
goto(one[0], one[1])
drawAcute((0, 0), (100, 0), (50, 50))
Write a function to draw three heights for a acute triangle via turtle. The input of...
Use python to do this. Will rate and thanks Write a function to draw three heights for a acute triangle via turtle. The input of the function are the coordinates of three vertexes. Hint: https://en.wikipedia.org/wiki/Distance_from_a_point_to_a_line.
Using python Here is the code import turtle def draw_triangle(vertex, length, k): ''' Draw a triangle at depth k given the bottom vertex. vertex: a tuple (x,y) that gives the coordinates of the bottom vertex. When k=0, vertex is the left bottom vertex for the outside triangle. length: the length of the original outside triangle (the biggest one). k: the depth of the input triangle. As k increases by 1, the triangles shrink to a smaller size. When k=0, the...
QUESTION 5 Write a non-fruitful function draw Triangle(someturtle, somesize) which makes a turtle draw a equalateral triangle TTT Arial 3 (12pt) T E.25 Bir Words: 0 Path:p Save All Answers Click Save and Submit to save and submit. Click Save All Answers to see all answers P
Write a function that draw your initials. (Using python 3 turtle) (H, Z)
Write function to check if point O is located inside or outside of the 2D triangle ABC The coordinates of the vertices are defined inside Coordinates.dat file. Read this file inside main m-file and provide the coordinates as an input to the function. Also ask user to input coordinates of the point O and provide it as input to the function as well. The output of the function should be a message, saying that the point is located inside or...
Please help with this python turtle problem using the functions provided. Python Turtle Write a program using the turtle module to draw the face of a clock that looks like the image below. You will need to use the turtle module for this exercise as well as the bgcolor), shape(), color), penup), right(), forward(), pendown(), and stamp() functions. The code below can be removed or changed as needed. import turtle t turtle.Turtle0 t.forward(75)
Python 2. (10 pts) Write the definition of a function, sqr_10(t), which uses turtle, t, to draw a square each side of which is 10 long.
Answer must be in Python 3 Answer: import turtle def trifecta(size,angle,num): for i in range(num): tri(t,size) t.right(angle) t = turtle.Turtle() s = turtle.Screen() trifecta(100,25,5) Question 11 Part b (10 points) Write a function named trifecta() that takes three parameters: 1. size 2. angle 3. num trifecta() should call tri() repeatedly so as to draw num triangles, each with sides of length size. Each triangle should be oriented angle degrees clockwise from the preceding triangle. trifecta() should create a turtle and...
In python use draw turtle to draw 2 different shapes that look visually appealing and here are the criteria: -Must have have a function and a for loop in that function -and also have a while loop outside the function that calls the function. -and also have the user be able to input how many of the shapes he want such as the example below num_of_rectangles_and_square = int(input('how many rectangles and squares would you like drawn?'))
Use a function in python that uses turtle graphics to draw a circle. Allow inputs of where to start (x,y) the radius, the pen color and fill color.