Question: use python please thanks Activity 4) Write a function called volumeCylinder(h,r) that takes two arguments for radius and height, calculates the volume of a cylinder,
Activity 4) Write a function called volumeCylinder(h,r) that takes two arguments for radius and height, calculates the volume of a cylinder, and returns the volume rounded off to two decimal places (volume of cylinder: radius?n * height). The result is printed outside the function and the radius and height are entered by the user. Template Up:\Windo... Enter a radius: When the program is ran, it asks the user to enter a radius... X if the user types and enters, the program asks for the height... C:\Windo... Enter a radius: 5 Enter the height: if the user types and enters 2, the program displays a message showing the radius, height, and volume as: CAWindows\py.exe x Enter a radius: 5 Enter the height: 2 The volume with radius 5 and height 2 is 157.08
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
