2.10.1. Practice Problems: Volume Formulas

1. Cube \[v = a^3 \] picture of a cube with sides a.
2. Box \[v = hlw \] picture of a solid rectangle with sides h, l, and w.
3. Sphere \[ v = {4 \over 3} \pi r^3 \] picture of a circle with r as the radius.
4. Pyramid \[v = {1 \over 3} ah \] picture of a four sided pyramid with a squre base with sides a and height of h.
Simple formula practice problems. Convert each volume formula to a C++ statement. Use the math library symbolic constant for π.