Question: Create a class for Circle shape and a class CircleDemo to show how to use Circle class. The demo need to print radius, circumference, and

Create a class for Circle shape and a class CircleDemo to show how to use Circle class. The demo need to print radius, circumference, and area of a circle object. You may refer to Rectangle.java and RectangleDemo.java as examples.
For bonus, please create an array of 10 circles with different sizes and print their radius, circumference, and area with a loop. Please keep two decimal places for output.
Sumission:
Circle.java
CircleDemo.java
Screenshot of output from your program

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 Databases Questions!