To calculate the density of a rock, you can use the formula for density, which is:
\[ \text{Density} = \frac{\text{Mass}}{\text{Volume}} \]
Now, let's use the given values:
- The mass of the rock is \( 15 \) grams.
- The volume of the rock is \( 3 \) cubic centimeters (which is the same as \( 3 \) milliliters, since \( 1 \) cm³ is equivalent to \( 1 \) mL).
Using these values in the density formula:
\[ \text{Density} = \frac{15 \text{g}}{3 \text{cm}³} \]
When we divide \( 15 \) grams by \( 3 \) cubic centimeters, we get:
\[ \text{Density} = 5 \frac{\text{g}}{\text{cm}³} \]
So the density of the rock is \( 5 \) grams per cubic centimeter.