Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

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.

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M91956277
  • Price:- $15

Priced at Now at $15, Verified Solution

Have any Question?


Related Questions in Computer Engineering

Describe an ethical conundrum found in a magazine or

Describe an ethical conundrum found in a magazine or newspaper article, and please give your own thoughts. Give good citations, of course.

Assume that the hypothetical economy of mo has 8 workers in

Assume that the hypothetical economy of Mo has 8 workers in year 1, each working 1,500 hours per year (50 weeks at 30 hours per week). The total input of labor is 12,000 hours. Productivity (average real output per hour ...

Question imagine you are a junior researcher at a

Question: Imagine you are a junior researcher at a world-renowned, high-tech laboratory that receives millions of dollars in government grants each year. You have been assigned the task of writing a proposal for the DARP ...

A confidence interval for a population mean is to be

A confidence interval for a population mean is to be estimated. The population standard deviation is guessed to be anywhere from 14 to 24. The half-width B desired could be anywhere from 2 to 7. Tabulate the minimum samp ...

In a standard s - t maximum flow problem we assume edges

In a standard s - t maximum flow problem, we assume edges have capacities, and there is no limit on how much flow is allowed to flow through a node. In this problem, we consider the variant of the maximum flow and minimu ...

Whats the difference between a bigfile tablespace and a

What's the difference between a Bigfile tablespace and a Smallfile tablespace? Explain which you would use for your database and why.

Question based upon your company profile install and

Question: Based upon your company profile, install and configure Windows Server within the virtual environment. 1. Ensure that the server name is appropriate for your corporation. 2. Create a complex password for the Adm ...

Security and network discussion questionsa discuss the pros

Security and Network Discussion Questions a) Discuss the pros and cons of an organization regularly engaging in penetration testing. b) What are the motivations of the ethical hacker?

Answer the following questions 1 suppose we want to

Answer the following Questions : 1. Suppose we want to transmit the message 1011101110 and protect it from using the CRC polynomial x 3 + x + 1. Use polynomial long division to determine the message should be transmitted ...

The question is asking how to do it in linuxa scientist ran

The question is asking how to do it in Linux. A scientist ran an experiment that generated data that accumulated in a sequence of files: data1, data2, data3, data4 and data5. He wants to know how many lines of data he ha ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As