CLICK HERE TO DOWNLOAD THIS ANSWER INSTANTLY $18 ONLY
write a program that calculates the volume of a cylinder using the formula given below, The program should prompt the user to enter the radius of the circle of the base and the height of the cylinder using the console via a scanner. Output the calculated volume to the console and using a JOptionPane. Demonstrate that your code compliles and runs without issue. You can use screen captures to demonstrate this functionality in a word document. Your completed assignment should consist of the .java and .doc files. Formula volume of a cylinder: PI * r ^ 2 * height PI: 3.14 r: radius of the circle of the base Height: height of the cylinder Example Program Execution Enter the radius of the base: 5 Enter the height of the cylinder: 2 The calculated volume is : 157] [DISPLAY MESSAGE DIALOG
write a program that calculates the volume of a cylinder using the formula given below, The program should prompt the user to enter the radius of the circle of the base and the height of the cylinder using the console via a scanner. Output the calculated volume to the console and using a JOptionPane. Demonstrate that your code compliles and runs without issue. You can use screen captures to demonstrate this functionality in a word document. Your completed assignment should consist of the .java and .doc files. Formula volume of a cylinder: PI * r ^ 2 * height PI: 3.14 r: radius of the circle of the base Height: height of the cylinder Example Program Execution Enter the radius of the base: 5 Enter the height of the cylinder: 2 The calculated volume is : 157] [DISPLAY MESSAGE DIALOG