/**
 * This function calculates the weight of a geological object.
 */
fun calculateWeight(density: Double, volume: Double): Double {

    val weight = density * volume * 9.8  // 9.8 m/s^2 is the acceleration due to gravity on Earth
    return weight
}
/**
 * This function calculates the weight of a geological object.
 */
fun calculateWeight(density: Double, volume: Double): Double {
/**
 * This function calculates the weight of a geological object.
 */
fun calculateWeight(density: Double, volume: Double): Double {

    val weight = density * volume * 9.8  // 9.8 m/s^2 is the acceleration due to gravity on Earth
    return weight
}