/**
 * Calculate the volume of a rock using its density and mass.
 *
 * @param rockDensity The density of the rock in grams per cubic centimeter.
 * @param rockMass The mass of the rock in grams.
 * @return The volume of the rock in cubic centimeters.
 */
fun calculateVolumeOfRock(rockDensity: Double, rockMass: Double): Double? {

    return if (rockDensity > 0 && rockMass > 0) {
        rockMass / rockDensity
    } else {
        null
    }
}
/**
 * Calculate the volume of a rock using its density and mass.
 *
 * @param rockDensity The density of the rock in grams per cubic centimeter.
 * @param rockMass The mass of the rock in grams.
 * @return The volume of the rock in cubic centimeters.
 */
fun calculateVolumeOfRock(rockDensity: Double, rockMass: Double): Double? {
/**
 * Calculate the volume of a rock using its density and mass.
 *
 * @param rockDensity The density of the rock in grams per cubic centimeter.
 * @param rockMass The mass of the rock in grams.
 * @return The volume of the rock in cubic centimeters.
 */
fun calculateVolumeOfRock(rockDensity: Double, rockMass: Double): Double? {

    return if (rockDensity > 0 && rockMass > 0) {
        rockMass / rockDensity
    } else {
        null
    }
}