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
Get step-by-step solutions from verified subject matter experts
