Remember,
1 kg = 1000 g or 1 kg = 1*10^3 g
and
1 km = 1000 m = 100,000 cm or 1 km = 1*10^3 m = 1*10^5 cm
So 1,200,000,000 kg = 1,200,000,000,000 g or 1,200,000,000 kg = 1.2*10^12 g
and 1 km^3 = (100,000)*(100,000)*(100,000) cm^3 = 1,000,000,000,000,000 cm^3 = 1*10^15 cm^3
-----------------------------
So
1,200,000,000 kg = 1.2*10^12 g
and
1 km^3 = 1*10^15 cm^3
----------------------------------
Also, remember that
Mass
Density = ---------
Volume
which is symbolically
Start with the given equation.
Plug in the given mass M=1.2*10^12 g and the given volume V=1*10^15 cm^3
Divide 1.2 by 1 to get 1.2. Divide by by subtracting
Subtract the exponents.
So the density is g/cm^3