Question: (8 points) Problem 2 gives you practice with interactive graphics that use mouse clicks rather than the console to get user input. It also gives

(8 points) Problem 2 gives you practice with interactive graphics that use mouse clicks rather than the console to get user input. It also gives your practice using coordinate transformation to make placing text in the window easier. a. (5 points) Write a program line1.py as described in Programming Exercise 8 on page 119 of the textbook. b. (3 point) Modify your program from part (a) so you have a second program named line2.py. This program will have the midpoint labeled, offset slightly from the actual location of the midpoint of the line. Hint: To create labels that combine text and numerical values, you may find using the type conversion function str() helpful (see p. 146). Submit your responses to Problem 2 as .py files

I KNOW PART A BUT I NEED PART B the text book is an introduction to computer science the page number could be different

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!