Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The volume of a cylinder is given by cylinder _ volume = * * cylinder _ height * * cylinder _ radius ? 2 .

The volume of a cylinder is given by cylinder_volume =** cylinder_height ** cylinder_radius ?2. Read cylinder_radius and cylinder_height from input as floats, respectively. Then, compute cylinder_volume using the formula. Finally, output 'Cylinder volume is ' followed by the value of cylinder_volume to five digits after the decimal point.
Ex: If the input is:
2.0
3.0
then the output is:
Cylinder volume is 37.69911
Note:
Use math pi for .
cylinder_radius ?2 can be computed using *.
12 import math
['. Your code goes here
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Students also viewed these Databases questions

Question

How do modern Dashboards differ from earlier implementations?

Answered: 1 week ago