Calculate the volume of various geometric solids including cubes, rectangular prisms, spheres, cylinders, cones, and square pyramids.