Question
Python Programming: We gives you practice creating and manipulating graphical objects. a) Write a program target1.py as described in Programming Exercise 2 on page 126
Python Programming:
We gives you practice creating and manipulating graphical objects.
a) Write a program target1.py as described in Programming Exercise 2 on page 126 of the textbook (2nd edition page 118).
b) Modify your program from part (a) above to make it interactive. Allow the user to specify the diameter of the outermost circle of the target. You may get this value from the user in a similar manner as the principal and apr were obtained in the futval_graph2.py program on page 105 of the textbook (2nd edition page 101). You will need to have the graphics window adjust its size to accommodate the archery target that will be created within it. Save your new program as target2.py.
Hint: You will ask the user for the diameter of the archery target. How is this related to the radius of the inner circle? The larger circles radii can be expressed as multiples of this value.
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