/**
 * A farmer is trying to determine the crop growth rate based on the temperature and rainfall conditions.
 * The function takes two arguments: temperature (in Celsius) and rainfall (in millimeters).
 * It returns a string indicating the crop growth rate.
 *
 * Crop Growth Rate:
 * - High: If temperature is between 25 and 35 degrees Celsius (inclusive) and rainfall is between 200 and 400 millimeters (inclusive)
 * - Medium: If temperature is between 20 and 40 degrees Celsius (inclusive) and rainfall is between 100 and 500 millimeters (inclusive)
 * - Low: If temperature is between 15 and 45 degrees Celsius (inclusive) and rainfall is between 50 and 600 millimeters (inclusive)
 * - No Growth: If any of the conditions for high, medium, or low are not met
 *
 * @param temperature a float indicating the temperature in Celsius
 * @param rainfall an integer indicating the rainfall in millimeters
 * @return a string indicating the crop growth rate
 */
fun determineCropGrowthRate(temperature: Float, rainfall: Int): String {

    return when {
        temperature in 25.0..35.0 && rainfall in 200..400 -> "High"
        temperature in 20.0..40.0 && rainfall in 100..500 -> "Medium"
        temperature in 15.0..45.0 && rainfall in 50..600 -> "Low"
        else -> "No Growth"
    }
}
/**
 * A farmer is trying to determine the crop growth rate based on the temperature and rainfall conditions.
 * The function takes two arguments: temperature (in Celsius) and rainfall (in millimeters).
 * It returns a string indicating the crop growth rate.
 *
 * Crop Growth Rate:
 * - High: If temperature is between 25 and 35 degrees Celsius (inclusive) and rainfall is between 200 and 400 millimeters (inclusive)
 * - Medium: If temperature is between 20 and 40 degrees Celsius (inclusive) and rainfall is between 100 and 500 millimeters (inclusive)
 * - Low: If temperature is between 15 and 45 degrees Celsius (inclusive) and rainfall is between 50 and 600 millimeters (inclusive)
 * - No Growth: If any of the conditions for high, medium, or low are not met
 *
 * @param temperature a float indicating the temperature in Celsius
 * @param rainfall an integer indicating the rainfall in millimeters
 * @return a string indicating the crop growth rate
 */
fun determineCropGrowthRate(temperature: Float, rainfall: Int): String {
/**
 * A farmer is trying to determine the crop growth rate based on the temperature and rainfall conditions.
 * The function takes two arguments: temperature (in Celsius) and rainfall (in millimeters).
 * It returns a string indicating the crop growth rate.
 *
 * Crop Growth Rate:
 * - High: If temperature is between 25 and 35 degrees Celsius (inclusive) and rainfall is between 200 and 400 millimeters (inclusive)
 * - Medium: If temperature is between 20 and 40 degrees Celsius (inclusive) and rainfall is between 100 and 500 millimeters (inclusive)
 * - Low: If temperature is between 15 and 45 degrees Celsius (inclusive) and rainfall is between 50 and 600 millimeters (inclusive)
 * - No Growth: If any of the conditions for high, medium, or low are not met
 *
 * @param temperature a float indicating the temperature in Celsius
 * @param rainfall an integer indicating the rainfall in millimeters
 * @return a string indicating the crop growth rate
 */
fun determineCropGrowthRate(temperature: Float, rainfall: Int): String {

    return when {
        temperature in 25.0..35.0 && rainfall in 200..400 -> "High"
        temperature in 20.0..40.0 && rainfall in 100..500 -> "Medium"
        temperature in 15.0..45.0 && rainfall in 50..600 -> "Low"
        else -> "No Growth"
    }
}