Step 1: Find the radius and cylindrical height first.
The diameter of the cylinder (and the hemispheres capping it) is $7\text{ cm}$, so the radius is
\[ r = \frac{7}{2} = 3.5\text{ cm} \]
The total height of the solid is $20\text{ cm}$, made up of the cylinder's height $h$ plus the radius contributed by each hemispherical end:
\[ h = 20 - 2r = 20 - 2(3.5) = 20 - 7 = 13\text{ cm} \]
Step 2: Compute the volume of the cylindrical part on its own.
Instead of combining everything into a single formula, we compute this volume by itself:
\[ V_{\text{cylinder}} = \pi r^2 h = \frac{22}{7} \times (3.5)^2 \times 13 \]
\[ = \frac{22}{7} \times 12.25 \times 13 = \frac{22}{7} \times 159.25 \]
\[ = \frac{3503.5}{7} = 500.5\text{ cm}^3 \]
Step 3: Compute the volume of the two hemispherical ends together, on their own.
A single hemisphere has volume $\frac{2}{3}\pi r^3$, so two hemispheres (one on each end) give
\[ V_{\text{2 hemispheres}} = 2 \times \frac{2}{3}\pi r^3 = \frac{4}{3}\pi r^3 \]
\[ = \frac{4}{3} \times \frac{22}{7} \times (3.5)^3 = \frac{4}{3} \times \frac{22}{7} \times 42.875 \]
\[ = \frac{4}{3} \times 134.75 = \frac{539}{3} \approx 179.67\text{ cm}^3 \]
Step 4: Add the two separate volumes together.
\[ V_{\text{total}} = V_{\text{cylinder}} + V_{\text{2 hemispheres}} = 500.5 + 179.67 \approx 680.17\text{ cm}^3 \]
Final Answer:
The total volume of the solid is about $680.17\text{ cm}^3$.
\[ \boxed{680.17\text{ cm}^3} \]