Question: Create a class that describes a circle and have the following: 1. Variable Length 2. Variable Wigth 3. Members: a. SetRadius b. GetRadius c.

Create a class that describes a circle and have the following: 1.

Create a class that describes a circle and have the following: 1. Variable Length 2. Variable Wigth 3. Members: a. SetRadius b. GetRadius c. SetCenterX (you set the circle center coordinate xo). d. SetCenterY (you set the circle center coordinate yo). e. GetCenterX f. GetCenterY g. SetPointX (se the x of a point in the circle) h. SetPointY (se the y of a point in the circle) i. GetArea j. GetCircumference k. GetRadiousFromPoint (Get Radius knowing the center and a point in the circle) 1. GetTangent (Here you find the tangent equation (ax+b) at a given point at the circle (the point coordinates (x,y) are set by the class member SetPointX and SetPointY and get them by GetPointX GetPointY) Please test all above members by printing some values in the screen.

Step by Step Solution

3.42 Rating (152 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Here is an implementation of the Circle class in Python based on the requirements given import math ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!