Question: Design and implement program to calculate the intersection area of two circles . Point Intersection Test -Intersection intersection -double x -double y +main(String[]):void -prompt:void -displayCircleAreas().vold

Design and implement program to calculate the intersection area of two circles .

Point Intersection Test -Intersection intersection -double x -double y +main(String[]):void -prompt:void -displayCircleAreas().vold-displayIntersectionArea().void use 1 Intersection -Circle circleA -Circle circleB +Intersection() +Intersection(Circle, Circle) +getCircleA():Circle+getCircleB():Circle +callntersectionArea:double +Point() +Point(double, double) +getX():double +getY() double +calDistance(Point):double 1 has Circle-Point centre: -double radius; has +Circle) 2 +Circle(Point, double) +getCentre():Point +getRadius() double

Point Intersection Test -Intersection intersection -double x -double y +main(String[]):void -prompt:void -displayCircleAreas().vold -displayIntersectionArea().void use 1 Intersection -Circle circleA -Circle circleB +Intersection() +Intersection(Circle, Circle) +getCircleA():Circle +getCircleB():Circle +callntersectionArea:double +Point() +Point(double, double) +getX():double +getY() double +calDistance(Point):double 1 has Circle -Point centre: -double radius; has +Circle) 2 +Circle(Point, double) +getCentre():Point +getRadius() double +calArea() double

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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!