/**
 * This function calculates the soil moisture using the OR operator and addition.
 *
 * @param temperature the temperature in degrees Celsius
 * @param rainfall the amount of rainfall in mm
 * @return the calculated soil moisture index
 */
fun computeSoilMoisture(temperature: Double, rainfall: Double): Double {

    // Calculate the soil moisture
    val soilMoisture = (temperature + rainfall) / 2.0
    return soilMoisture
}
/**
 * This function calculates the soil moisture using the OR operator and addition.
 *
 * @param temperature the temperature in degrees Celsius
 * @param rainfall the amount of rainfall in mm
 * @return the calculated soil moisture index
 */
fun computeSoilMoisture(temperature: Double, rainfall: Double): Double {
/**
 * This function calculates the soil moisture using the OR operator and addition.
 *
 * @param temperature the temperature in degrees Celsius
 * @param rainfall the amount of rainfall in mm
 * @return the calculated soil moisture index
 */
fun computeSoilMoisture(temperature: Double, rainfall: Double): Double {

    // Calculate the soil moisture
    val soilMoisture = (temperature + rainfall) / 2.0
    return soilMoisture
}