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

  Implications of answer for the entrepreneur

Do you believe that the laws should be changed to make it easier for entrepreneurs to go into, and recover from, bankruptcy? What are the implications of your answer for the entrepreneur, creditors, and the national economy?

  Experiment with different file and buffer sizes

Try performing these timing tests on a range of file systems (e.g., ext3, XFS, Btrfs, and JFS). Are the results similar? Are the trends the same when going from small to large buffer sizes?

  Create two files edit your new file using gedit vi and chage

Create two files. • File1 has one line with the value of 5. • File2 has one line with the value of 100. Edit your new file using Gedit or VI and change it so it performs the following actions

  Write nested for loops to produce the following output

Write nested for loops to produce the following output

  Reads in three integers

Write a program that reads in three integers and determines and prints the smallest number numerically in the group. The values are NOT necessarily entered in numeric order.

  Pyramids of egypt have programmable calculus

Name 3 reasons why pyramids of Egypt have programmable calculus?

  What the draw is for the business to provide such a service

What are the dangers, if any, that come along with offering such a service?

  Ease of access or speed of processing

Security of your data is of utmost importance to Jamie, even more so than ease of access or speed of processing. Which type of application category would you recommend Jamie use?

  What other snmp information might be considered sensitive

What other SNMP information might be considered sensitive?

  Identify a new use for ugc

Choose one of the two publications and identify a new use for UGC. Write a one-page memo to the publisher of that magazine describing your idea and how it would contribute to the goals of the publication.

  Technology someday eliminate need for antenna maintenance

What technology may someday eliminate this need for antenna maintenance? In your own words, briefly describe how this technology works.

  Explain interpreter and translator terms in your own words

Explain each of the following terms in your own words: Translator, Interpreter and Virtual machine. Is it conceivable for a compiler to generate output for the microarchitecture level in- stead of for the ISA level?

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