/**
 * This function helps geographers identify suitable locations for rivers.
 *
 * @param lakeExists a boolean indicating whether there is a lake nearby
 * @param coastalRegion a boolean indicating whether the location is in a coastal region
 * @param temperatureAboveFreezing a boolean indicating whether the temperature is above freezing point
 * @param ecosystemType a string representing the type of ecosystem (e.g., forest, desert, wetland)
 * @param precipitationLevel an integer representing the level of precipitation (mm)
 *
 * @return True if the location is suitable for a river, False otherwise
 */
fun findRivers(lakeExists: Boolean, coastalRegion: Boolean, temperatureAboveFreezing: Boolean, ecosystemType: String, precipitationLevel: Int): Boolean {

    // Nested logical operators to identify suitable locations
    if ((ecosystemType == "forest" || ecosystemType == "wetland") && precipitationLevel > 100) {
        if (temperatureAboveFreezing && coastalRegion) {
            return true
        }

        if (lakeExists) {
            return true
        }
    }
    return false
}
/**
 * This function helps geographers identify suitable locations for rivers.
 *
 * @param lakeExists a boolean indicating whether there is a lake nearby
 * @param coastalRegion a boolean indicating whether the location is in a coastal region
 * @param temperatureAboveFreezing a boolean indicating whether the temperature is above freezing point
 * @param ecosystemType a string representing the type of ecosystem (e.g., forest, desert, wetland)
 * @param precipitationLevel an integer representing the level of precipitation (mm)
 *
 * @return True if the location is suitable for a river, False otherwise
 */
fun findRivers(lakeExists: Boolean, coastalRegion: Boolean, temperatureAboveFreezing: Boolean, ecosystemType: String, precipitationLevel: Int): Boolean {
/**
 * This function helps geographers identify suitable locations for rivers.
 *
 * @param lakeExists a boolean indicating whether there is a lake nearby
 * @param coastalRegion a boolean indicating whether the location is in a coastal region
 * @param temperatureAboveFreezing a boolean indicating whether the temperature is above freezing point
 * @param ecosystemType a string representing the type of ecosystem (e.g., forest, desert, wetland)
 * @param precipitationLevel an integer representing the level of precipitation (mm)
 *
 * @return True if the location is suitable for a river, False otherwise
 */
fun findRivers(lakeExists: Boolean, coastalRegion: Boolean, temperatureAboveFreezing: Boolean, ecosystemType: String, precipitationLevel: Int): Boolean {

    // Nested logical operators to identify suitable locations
    if ((ecosystemType == "forest" || ecosystemType == "wetland") && precipitationLevel > 100) {
        if (temperatureAboveFreezing && coastalRegion) {
            return true
        }

        if (lakeExists) {
            return true
        }
    }
    return false
}