'How to make a dart scoring code using an x and y coordinate in java

Im trying to make a program in java that uses an input of an x and y coordinate, like this

0.0 0.0

And then that would give the score on the dartboard, for those coordinates the score would be 50.

https://www.101computing.net/wp/wp-content/uploads/dartboard-scores.png

https://www.101computing.net/wp/wp-content/uploads/dartboard-distances.png

https://www.101computing.net/wp/wp-content/uploads/dartboard-angles.png

These 3 images give how to score every section, the angles of every section, and the length of each section from the center of the board. I know I have to convert the x and y coordinates into polar coordinates but beyond that, I'm stumped



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source