Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The answer has to be in python3. i have coded most of the answer but i am having a problem with figuring out the last

The answer has to be in python3. i have coded most of the answer but i am having a problem with figuring out the last couple of funcitons and implementing them. It would be much appreciated if i could get some help

image text in transcribed

image text in transcribed

*8.18 (Geometry: The Circle2D class) Define the Circle2D class that contains Two private float data fields named x and y that specify the center of the circle with get/set methods A private data field radius with get/set methods. A constructor that creates a circle with the specified x, y, and radius. The default values are all 0 A method getArea() that returns the area of the circle A method getPerimeterO that returns the perimeter of the circle. A method containsPoint (x, y) that returns True if the specified point (x, y) is inside this circle (see Figure 8.10a). A method contains (circle2D) that returns True if the specified circle is inside this circle (see Figure 8.10b) A method overlaps (circle2D) that returns True if the specified circle overlaps with this circle (see Figure 8.10c) Implement the_contains_(another) method that returns True if this circle is contained in another circle *8.18 (Geometry: The Circle2D class) Define the Circle2D class that contains Two private float data fields named x and y that specify the center of the circle with get/set methods A private data field radius with get/set methods. A constructor that creates a circle with the specified x, y, and radius. The default values are all 0 A method getArea() that returns the area of the circle A method getPerimeterO that returns the perimeter of the circle. A method containsPoint (x, y) that returns True if the specified point (x, y) is inside this circle (see Figure 8.10a). A method contains (circle2D) that returns True if the specified circle is inside this circle (see Figure 8.10b) A method overlaps (circle2D) that returns True if the specified circle overlaps with this circle (see Figure 8.10c) Implement the_contains_(another) method that returns True if this circle is contained in another circle

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Conceptual Database Design An Entity Relationship Approach

Authors: Carol Batini, Stefano Ceri, Shamkant B. Navathe

1st Edition

0805302441, 978-0805302448

More Books

Students also viewed these Databases questions