The volume of a cylinder with the radius r and height h can be calculated by the following formula.
V=π r^2 h
We do not know the radius of the cylinder, but we are given its diameter. We know that the diameter is twice the length of the radius.
d = 2r
The radius is therefore 8cm. Since we are given the height of the cylinder, we can substitute the values into the formula and calculate V.