Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The surface area and volume of a right cylinder are calculated using the following formulas: Formula for the area of a right cylinder is A
The surface area and volume of a right cylinder are calculated using the following formulas:
Formula for the area of a right cylinder is A pi rh pi r
Form for the volume of a right cylinder is pi rh
Write a program that prompts the user to enter values for the radius float and height float for the right cylinder. The program should calculate and display the surface area and volume of the right cylinder. Use the Python defined constant for pi Here is link to the constant in the Python documentationLinks to an external site.. The surface area and volume should be formatted as fixedpoint numbers with decimal places using an fstring. Do not use the round function.
Here is a sample run of the program:
Enter the radius of the right cylinder:
Enter the height of the right cylinder:
The surface area of the right cylinder is
The volume of the right cylinder is
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started