/**
 * This function calculates the density of a rock given its volume and mass.
 */
fun calculateRockDensity(volume: Double, mass: Double): Double {

    // Calculate density
    val density = mass / volume

    // Return the density
    return density
}
/**
 * This function calculates the density of a rock given its volume and mass.
 */
fun calculateRockDensity(volume: Double, mass: Double): Double {
/**
 * This function calculates the density of a rock given its volume and mass.
 */
fun calculateRockDensity(volume: Double, mass: Double): Double {

    // Calculate density
    val density = mass / volume

    // Return the density
    return density
}