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

  Describing the hardware and software used to support

Write a 1100-1350 word paper describing the hardware and software used to support personal, workgroup, and enterprise computing within your current organization, an organization with which you are familiar, or an organization that you can inte..

  Display the values of the si_fd and si_code fields

display the values of the si_fd and si_code fields of this structure.

  Facing a potentially unethical action

Identify the three questions that an ethics-based manager should ask when facing a potentially unethical action

  Problem regarding the warehouse table

"Create a View called WrhSec_Man_vu that will display for each Warehouse_id and Section_id also City, Division and manager's Last_name. Alias for Last_name should be LName and for Division should be Group."

  Pc that used to operate correctly displays a message

A PC that used to operate correctly displays a message, BOOTMGR is missing. Research this problem and make a list of possible reasons why a PC could report this error

  Explain what type of architecture new payroll application

Explain what type of architecture the new payroll application should use and why. Identify what types of technology will be involved in the architecture and explain the purpose of each technology.

  Write a program and create a flow chart

The game of Nim. This is a well-known game with a number of variants. We will consider the following variants, which has an interesting winning strategy. Two players alternately take marbles from a pile.

  Development of an effective approach to physical security

Using the required reading and any other resources you might find helpful, write a paper regarding development of an effective approach to physical security within the project organization. Be sure to cover the following topics:

  Read these files into r and test several functions

Read these files into R and test several functions with these new messages, e.g., get Boundary () and drop Attach () from Section 3.5.2, to make sure that they work properly.

  Discuss and share rich and diverse assortment of reference

Discuss and share the rich and diverse assortment of reference sources for the Bourne Again Shell (BASH).

  Create a class that simulates an alarm clock

create a class that simulates an alarm clock. In this class you should *store time in hours, minutes, and seconds. Note if time is am or pm. (hint: you should have separate private members for the alarm and the clock.

  Preferred storage method for vsphere

For this discussion, select your preferred storage method for vSphere and explain why this is your preferred method.•Is one storage method easier to configure and support than another? If so, which one do you feel is easier? Explain what separates th..

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