/**
 * A geologist needs to calculate the density of a rock sample.
 * The function calculateDensity takes the mass and volume of the sample as arguments and returns the density.
 *
 * Hint: Use the formula density = mass / volume.
 *
 * @param mass The mass of the rock sample in grams.
 * @param volume The volume of the rock sample in cubic centimeters.
 * @return The density of the rock sample in grams per cubic centimeter.
 */
fun calculateDensity(mass: Double, volume: Double): Double {

    var density: Double
    // Calculate the density
    density = mass / volume
    return density
}
/**
 * A geologist needs to calculate the density of a rock sample.
 * The function calculateDensity takes the mass and volume of the sample as arguments and returns the density.
 *
 * Hint: Use the formula density = mass / volume.
 *
 * @param mass The mass of the rock sample in grams.
 * @param volume The volume of the rock sample in cubic centimeters.
 * @return The density of the rock sample in grams per cubic centimeter.
 */
fun calculateDensity(mass: Double, volume: Double): Double {
/**
 * A geologist needs to calculate the density of a rock sample.
 * The function calculateDensity takes the mass and volume of the sample as arguments and returns the density.
 *
 * Hint: Use the formula density = mass / volume.
 *
 * @param mass The mass of the rock sample in grams.
 * @param volume The volume of the rock sample in cubic centimeters.
 * @return The density of the rock sample in grams per cubic centimeter.
 */
fun calculateDensity(mass: Double, volume: Double): Double {

    var density: Double
    // Calculate the density
    density = mass / volume
    return density
}