As stated above, the sides don't look parallel.
But if they are parallel, the volume = volume of a cylinder + half the volume of a sphere.
The radius r = 3cm.
Radius r = diameter d/2.
Height h = 10cm.
Volume of a cylinder = πr2 * h. Where h = height
Volume of a sphere " (4/3) * πr3.
So volume of shape = volume of cylinder + [ (1/2) * volume of sphere]
Because half the sphere is inside the cylinder so we don't want to count that twice