Calculate the volume of rectangular prisms and cylinders