Question: Java: In a new file write a program that reads from the keyboard tha radius of a circle. Calculate and output the area and circumference

Java: In a new file write a program that reads from the keyboard tha radius of a circle. Calculate and output the area and circumference of that circle. Use the following formulas: area = * r2 and circumference = 2 * * r The radius should be a double. Use DecimalFormat class to format the result, with two digits printed to the right of the decimal point (see example 3.7). Use Math.PI for the value of pi

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!