Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write in python. Regrence the pictures, read 2 nd page first. First page has what that refrences. Problem 1 6 page 1 9 6 :
Write in python.
Regrence the pictures, read nd page first. First page has what that refrences.
Problem page :
Archery scorer. Write a program that draws an archery target see Programming Exercise from Chapter and allows the user to click five times to represent arrows shot at the target. Using fiveband scoring, a bullseye yellow is worth points and each successive ring is worth fewer points down to for white. The program should output a score for each click and keep track of a running sum for the entire series.
Exercise from chapter : from graphics import
def main:
win GraphWin Target",
win.setBackground Black
win.setCoords
shepe Circle Point
shape.drawwin
shape, setFillwhite
shape Circle Point
shapedrawwin
shapesetFiublack
shepe Circle Point
shapedrawwin
shape setFillblue
shepe Circle Point
shapedrawwin
shapesetFilred
shape Point
shapedrawwin
shapesetFilyellow
main
Write a program to be an archery scorer see problem on page Your program should be fully graphical and include appropriate prompts for the user. image below shows how it might look after shots.
"Arrow" is the point value of the last arrow fired. and "Score" is the running total.
Your program should have the following helper functions:
def drawtargetwin:
# draws an archery target in win center bullseye radius is
def getshotwin:
# gets a mouse click in win, draws a circular shot and returns the point clicked
def scorepoint:
# returns the score for an arrow landing at point
Have your main window be pixels. Your target should be centered at and the Bullseye yellow circle should have radius ala lab b Make sure you get the program working according to these specifications. You will not get credit for a program that takes a different approach.
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