Question: Write a JAVA application (class name: Circle) that reads the radius of a circle and prints its area (A=R2) and its circumference (2R). Display both

 Write a JAVA application (class name: Circle) that reads the radius

Write a JAVA application (class name: Circle) that reads the radius of a circle and prints its area (A=R2) and its circumference (2R). Display both results with only 2 decimal places. Hint: use the pow () method and the PI attribute from the Math class Hint: Use the DecimalFormat class from java.text.DecimalFormat

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!