CPSC120
Fundamentals of Computer Science

In-class Activity 32

  1. Create a Python class called Circle in a file called circle.py that represents a two dimensional circle. Give the class methods that do the following:

    1. Initialize a circle with a location and a radius.
    2. Return a string that represents a circle.
    3. Returns the area of a circle.
    4. Returns whether a specified point is in a circle or not.

    In a separate file, create code that tests each of the methods of the circle class.