Question: Part 2b Create a Java program named YourName2b, so mine would b Calculate the area, circumference, and diameter of a circle. Prompt the user for
Part 2b Create a Java program named YourName2b, so mine would b Calculate the area, circumference, and diameter of a circle. Prompt the user for the radius Then use double variables to store calculated values, one each for the area, diameter, and circumference. Given a radius r, the area of a circle is PI r and the diameter is 2 r and the circumference is 2 * P1 * r. You may use the double value 3 . 14159 for P. jGRASP exec: java Enter the radius: 3.2 The area is 32.169881600000004 The circumference is 20.106176 The diameter is 6.4 jGRASP: operation complete
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
