The volume of a piece of rock was 18.0 cm^3. The student measured the mass of the piece of rock as 48.6 g. Calculate the density of the rock in g/cm^3.