Volume of Slab/Cylinder

Calculate the volume of rectangular slabs or cylinders.