Start New Discussion Reply to this Discussion drawing triangles with python's turtle graphic
A. Write a triangle solver that takes 3 inputs consisting of angles in degrees and length
of sides in arbitrary units and, if possible (your program has to determine this),
supplies all other angles and side lengths. There will be either 0 triangles, 1 triangle,
2 triangles or an infinite number of triangles – you program must determine which
possibility. Classify the type of triangle (right triangle, isosceles, equilateral, acute,
obtuse – see any good geometry book. Finally, use the Turtle module to draw the
triangle(s) with correct relative dimensions.
23 Minutes
Discussion Span
Related Article: Color Wheel in Python using Turtle
is a Python discussion thread by shills300 that has 2 replies, was last updated 5 months ago and has been tagged with the keywords: python, beginner, turtle, color, wheel, help.
wai.yan.9678
Newbie Poster
1 post since Aug 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0
The first paragraph here will help get you started:
http://docs.python.org/py3k/library/turtle.html
This will help understand triangles:
http://www.freemathhelp.com/feliz-angles-triangle.html
The key part is understanding that all triangles will have a total of 180* as the sum of all angles. That means, given your 3 inputs, if they don't add up to 180* then it's not a triangle.
You have a lot of choices on how to start. A better way for us to help you is to start writing some code, and when you have trouble or get stuck, then ask. Homework is meant for you to learn, not for people on a message board to do it for you.
ryantroop
Junior Poster
180 posts since Jun 2012
Reputation Points: 57
Solved Threads: 22
Skill Endorsements: 0
© 2013 DaniWeb® LLC
Page rendered in 0.0581 seconds
using 2.69MB