Question: Python question! . Show code and step! Write a first module that creates a circle ADT. It should consist of a Python code file named
Python question!
.

Show code and step!
Write a first module that creates a circle ADT. It should consist of a Python code file named CircleADT.py. The module should define a class CircleT, which contains the following class methods that define the external interface: A constructor (CircleT) that takes three real numbers r, y and r as input and assigns them to private instance variables. The r and y values define the centre of the circle and r defines its radius. Three getters named xcoord, ycoord and radius that return the r and y coordi- nates of the centre of the circle and the radius of the circle, respectively. A method named area that returns the area of the circle. A method named circumference that returns the circumference of the circle. A method named insideBox that takes the following inputs: the a coordinate of the left side of a box (zo), the y coordinate of the top of a box (yo), the width (w) of the box and the height (h) of the box. The box, the circle and the associated coordinate system are shown in Figure 1. This method should return true if the circle is inside the box and false if it is not
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
