Draw an isosceles triangle

Assignment Help Basic Computer Science
Reference no: EM131200231

Using the Point and Line classes described in Section 7.2, see page 78 of attachment draw an isosceles triangle with the following configuration:start = Point(1, 1)finish = Point(4, 5)l = Line(start, finish)l.draw(win)a triangle inthe graphics window using those three points. (100, 30)(50, 100) (150, 100)So I got my drawing box to work with the code but now stuckfrom graphics import*def main( ):win = GraphWin("Python Graphics", 500, 500)win.getMouse( )win.close( )main( )Then I go to put in a line just like they show in the book and I get a syntax errorstart1 = Point(100,30)finish1= Point(150,100) 1 = Line(start1, finish1)1.draw(win)At "draw"...I don't know. That seems right to me considering its straight from the text just with different coordinates.A colleague posted this to help. "I think I need to find where Python is installed on my local drive. So I opened up my Local disk (C:) and found the folder Python32. Double click that folder to enter, and find the "Lib" folder: note not to find the "libs" folder...that is wrong. Double click there to enter and find the "site-packages" folder. That is the folder that you want to place the graphics.py file into."It doesn't work for me can you help?I attachment the Python PDF document. Please convert to py file extension.

Reference no: EM131200231

Questions Cloud

More women have become primary wage earners in households : Over time, more women have become the primary (or sole) wage earners in their households.  - How does this fact complicate the empirical analysis of the effects of taxation on women's labor supply?
Demonstrate understanding of the topics : The key to this assignment is to demonstrate your understanding of the topics, not to re-word the text or reference material. Please see Appendix A for the grading rubric on all written assignments.
Will the increase number of people hired why or why not : Will this increase the number of people entering this labor market? Why or why not? Will this increase the number of people hired? Why or why not?
What is the order of the system : What is the system matrix and what is the input distribution matrix for your choice of state variables?
Draw an isosceles triangle : Using the Point and Line classes described in Section 7.2, see page 78 of attachment draw an isosceles triangle with the following configuration:start = Point(1, 1)finish = Point(4, 5)l = Line(start, finish)l.draw(win)a triangle inthe graphics win..
What happen to labor supply eitc compensation rate increase : What is likely to happen to overall labor supply if  the EITC compensation rate increases from 30% to 50% for each dollar earned?
Define similarities and differences of the her code sets : Describe the similarities and differences of the HER code sets. In no more than one paragraph discuss why an HER code set has to provide equilibrium between granularity and point of care requirements.
System of simultaneous equation and graph the results : Solve the following system of simultaneous equation and graph the results. Y = 50 +2x (1) Y = 100 -0.5x (2). Assume that the intercept of equation 1 from problem 4 has increase by 5 units. Graph the new and old equations. Assume that the slope of equ..
Home system consisting of a separate media : Sketch a design for a home system consisting of a separate media server that will allow for the attachment of a wireless client. The latter is connected to (analog) audio/video equipment and transforms the digital media streams to analog output.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd