1. Engineering
  2. Computer Science
  3. 5 a dartboard has a radius of 10 and the...

Question: 5 a dartboard has a radius of 10 and the...

Question details

5. A dartboard has a radius of 10 and the wall it is hanging on are represented using the 2-dimensional coordinate system, with the boards center at (0, 0) Variables x and y store the x- and y-coordinates of a dart hit. Write a function called dartboard(x. y) that accepts x and y, and evaluates to informs the user if the dart hits (is within) the dartboard. Pyto 370 Shell ie Ed Shell Cebug Options Window Hep Python 3.7.0 (v3.7.0:1bf9ce5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (ANDE 4)) on win32 Type copyright, credits or license() for more information DX RESTART: CUserselulis\Desktop A2-PY >>> dartboard (0,0) Your dart hit at (0 our dart hit the board. >>>dartboard (10,10) Your dart hit at 10, 10 our dart did not hit the board >>> dartboard (, -) Your dart hit at 6,-6 Your dart hit the board. > dartboard (-7, 8) Your dart hit at ( -7、8 ). Your dart did not hit the board

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution