Question: Write a program in Python to be used in a dart game which calculates whether a thrown dart hits the dart board. A dart will



Write a program in Python to be used in a dart game which calculates whether a thrown dart hits the dart board. A dart will be shown with x and y coordinates represented as a tuple (X.X). Randomly, create 10 tuples for 10 darts thrown and store them in a list. The program should show if the dart hits the board or not as true or false. The radius of the dart board is accepted as 11. (radius=11)(center=(0,0)) The distance between the dart and the center of the board is going to be calculated, according to the formula given below: distance = (x2-x2)+(12-12 Yaxis f (y) (0,0) angle xaxis Then, determine whether the dart hits the board and output the following: if distance > radius, "Outside of the dart board!" and Result: False If distance
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
