Computer Science, asked by harsh493043, 3 months ago

write the algorithm for calculating volume of cylinder?

Answers

Answered by chandu749
1

If you have ever seen a can of soda, you know what a cylinder looks like. A cylinder is a solid figure with two parallel circles of the same size at the top and bottom. The top and bottom of a cylinder are called the bases. The height

h

of a cylinder is the distance between the two bases. For all the cylinders we will work with here, the sides and the height,

h

, will be perpendicular to the bases.

A cylinder has two circular bases of equal size. The height is the distance between the bases.

An image of a cylinder is shown. There is a red arrow pointing to the radius of the top labeling it r, radius. There is a red arrow pointing to the height of the cylinder labeling it h, height.

Rectangular solids and cylinders are somewhat similar because they both have two bases and a height. The formula for the volume of a rectangular solid,

V

=

B

h

, can also be used to find the volume of a cylinder.

For the rectangular solid, the area of the base,

B

, is the area of the rectangular base, length × width. For a cylinder, the area of the base,

B

, is the area of its circular base,

π

r

2

. The image below compares how the formula

V

=

B

h

is used for rectangular solids and cylinders.

Seeing how a cylinder is similar to a rectangular solid may make it easier to understand the formula for the volume of a cylinder.

In (a), a rectangular solid is shown. The sides are labeled L, W, and H. Below this is V equals capital Bh, then V equals Base times h, then V equals parentheses lw times h, then V equals lwh. In (b), a cylinder is shown. The radius of the top is labeled r, the height is labeled h. Below this is V equals capital Bh, then V equals Base times h, then V equals parentheses pi r squared times h, then V equals pi times r squared times h.

Answered by rajerajeswari85
2

The formula for the volume of a cylinder is V=Bh or V=πr2h . The radius of the cylinder is 8 cm and the height is 15 cm. Substitute 8 for r and 15 for h in the formula V=πr2h .

Similar questions