Question: Python Function Write a program to calculate a volume and side surface of a cylinder with a given radius and length respectively. Write a function
Python Function Write a program to calculate a volume and side surface of a cylinder with a given radius and length respectively. Write a function for each calculation. Display the results in a readable format with two decimal points. Below shows information on how to calculate the volume and the side surface of a cylinder, and how the function should be designed. The volume, V, of a cylinder is given by this formula; ris the cylinder's radius, and L is its length. Using this formula, write a Python function named cyhvol() that accepts a cylinder's radius and length and return its volume The side surface area, S, of a cylinder is given by this formula: S-2nrl r is the cylinder's radius, and I is its length. Using this formula, write a Python function named surfareal) that accepts a cylinder's radius and length and return its side surface area. Please submit the following two items to your instructor 1. The program source code (the py file) 2. The program output Points will be given based on the following requirements: 1. The assignment meets the program prerequisites as specified in the question. Your program executes without errors, runs accordingly, and produces correct output
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
