Question
2. (8 points) Problem 2 gives you practice with interactive graphics that use mouse clicks rather than the console to get user input. It also
2. (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.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started