Final answer:
CO2 is nonpolar because its linear shape causes the dipoles to cancel each other out, while H2O is polar due to its bent shape, resulting in a net dipole moment.
Step-by-step explanation:
The difference in shape of CO2 and H2O molecules can be traced back to their electronegativity differences and molecular geometry. CO2 has a linear structure with two polar covalent bonds. The oxygen atoms are more electronegative than the carbon atom, therefore, individual dipoles exist pointing away from carbon to each oxygen. However, these dipoles are of equal strength and are directed in opposite directions, thus canceling each other out, rendering CO2 nonpolar.
In contrast, H2O has a bent molecular structure due to the two lone pairs on the central oxygen atom, which repel the hydrogen atoms. This creates a situation where the individual dipoles do not cancel each other out because they are not directed in opposite directions. Consequently, H2O has a net dipole moment and is classified as a polar molecule.