Write a function called my_circle that requires two Point instances as parameters. There are two main steps in this function. First, it calculates the distance between the two points using the...


Write a function called my_circle that requires
two
Point instances as parameters. There are two main steps in this function.



  • First, it calculates the distance between the two points using the distance formula.

  • Second, using the above value, create and return a circle object that has the ends of a diameter at these two points.


The distance formula is: d=sqrt((x2​−x1​)^2 + (y2​−y1​)^2)




Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here