1. Engineering
  2. Computer Science
  3. part 2b create a java program named yourname2b so mine...

Question: part 2b create a java program named yourname2b so mine...

Question details

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.
Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution