Question: Make a circle java class, as listed in the uml.It will use a point class already programmed below. It will calculate area, perimeter, In bounds
Make a circle java class, as listed in the uml.It will use a point class already programmed below. It will calculate area, perimeter, In bounds takes in the point and returns true if the point is inside the circle (including on the perimeter), and returns false otherwise, and a getBounding box method.



Circle - center : Point get/set - radius : double get/set + Circle() + Circle(Point, double) + area(): double + perimeter(): double + inBounds(Point): boolean + getBoundingBox(): Rectangle public Point() { this.x = 0; this.y = 0; this.radius = 0; this.angle = 0; Add the method getBoundingBox to generate Rectangle that surrounds the top, bottom, left, and right margins of the circle. There are many ways to do accomplish this, but the overall goal is create the red box pictured below: for any given circle
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
