Need help with Python Programming Questions about output

User Generated

nnebaw9999

Computer Science

Description

Q39.pdf

Please answer this question (see pdf) and provide an explanation on how you found your answer.

Unformatted Attachment Preview

CS177 Spring 2015 Final exam - Page 26 of 29 Fri 05/08 7:00p - 9:00p 39. Consider the following Python program: from g r a p h i c s import ⇤ def main ( ) : win = GraphWin ( ’My Window ’ , 3 0 0 , 3 0 0 ) win . s e t C o o r d s ( 0 , 0 , 300 , 3 0 0 ) r e c t = R e c t a n g l e ( Point ( 1 0 0 , 1 0 0 ) , Point ( 2 0 0 , 2 0 0 ) ) x1 = r e c t . getP1 ( ) . getX ( ) y1 = r e c t . getP1 ( ) . getY ( ) x2 = r e c t . getP2 ( ) . getX ( ) y2 = r e c t . getP2 ( ) . getY ( ) line1 = ? line2 = ? r e c t . draw ( win ) l i n e 1 . draw ( win ) l i n e 2 . draw ( win ) win . getMouse ( ) main ( ) What should be at line1 and line2 in order to get the following output?
Purchase answer to see full attachment
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Explanation & Answer


Anonymous
I use Studypool every time I need help studying, and it never disappoints.

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4

Similar Content

Related Tags