/**
 * This function calculates the income for a farmer based on the weather and the crop grown.
 *
 * @param weather The weather condition, either "sunny" or "rainy".
 * @param crop The crop grown, either "corn" or "wheat".
 * @return The calculated income based on the weather and crop.
 */
fun calculateIncome(weather: String, crop: String): Float {

    return when {
        weather == "sunny" && crop == "corn" -> 5000f
        weather == "sunny" && crop == "wheat" -> 8000f
        weather == "rainy" && crop == "corn" -> 3000f
        weather == "rainy" && crop == "wheat" -> 6000f
        else -> 0f
    }
}
/**
 * This function calculates the income for a farmer based on the weather and the crop grown.
 *
 * @param weather The weather condition, either "sunny" or "rainy".
 * @param crop The crop grown, either "corn" or "wheat".
 * @return The calculated income based on the weather and crop.
 */
fun calculateIncome(weather: String, crop: String): Float {
/**
 * This function calculates the income for a farmer based on the weather and the crop grown.
 *
 * @param weather The weather condition, either "sunny" or "rainy".
 * @param crop The crop grown, either "corn" or "wheat".
 * @return The calculated income based on the weather and crop.
 */
fun calculateIncome(weather: String, crop: String): Float {

    return when {
        weather == "sunny" && crop == "corn" -> 5000f
        weather == "sunny" && crop == "wheat" -> 8000f
        weather == "rainy" && crop == "corn" -> 3000f
        weather == "rainy" && crop == "wheat" -> 6000f
        else -> 0f
    }
}