To find the volume of water in the container, we can use the relationship between mass, density, and volume, which is given by the formula:
\[ \text{Volume} = \frac{\text{Mass}}{\text{Density}} \]
First, we need to determine the mass of the water alone. The total mass of the container when filled with water is given as 60 grams. The mass of the empty container is 20 grams. Therefore, the mass of the water is:
\[ \text{Mass of water} = \text{Total mass} - \text{Mass of empty container} = 60 , \text{grams} - 20 , \text{grams} = 40 , \text{grams} \]
Given that the density of water is \(1 , \text{g/cm}^3\), we can now calculate the volume of the water:
\[ \text{Volume} = \frac{\text{Mass of water}}{\text{Density}} = \frac{40 , \text{grams}}{1 , \text{g/cm}^3} = 40 , \text{cm}^3 \]
Thus, the volume of the water in the container is \(40 , \text{cm}^3\).