Question: Write a program called Circle.java. The radius of a circle is a double data type, and PI is a final double initialized with the value

Write a program called Circle.java. The radius of a circle is a double data type, and PI is a final double initialized with the value 3.14159.

The program should ask the user to input the radius of a circle from the keyboard, and prints the circles diameter, circumference and area.

Use the following formulas:

diameter = 2 * radius

circumference = 2 * PI * radius

area = PI * radius * radius

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!