/**
 * This function takes a map of farm animals and their respective daily food consumption and calculates the total daily food needed.
 *
 * @param farmAnimals A map with keys as farm animals and values as their respective daily food consumption in kg.
 * @return The total daily food needed in kg.
 */
fun calculateTotalDailyFood(farmAnimals: Map<String, Double>): Double {

    var totalFood = 0.0
    
    // Loop through each farm animal and calculate their food requirement
    for ((animal, foodConsumption) in farmAnimals) {
        totalFood += foodConsumption
    }
    
    return totalFood
}
/**
 * This function takes a map of farm animals and their respective daily food consumption and calculates the total daily food needed.
 *
 * @param farmAnimals A map with keys as farm animals and values as their respective daily food consumption in kg.
 * @return The total daily food needed in kg.
 */
fun calculateTotalDailyFood(farmAnimals: Map<String, Double>): Double {
/**
 * This function takes a map of farm animals and their respective daily food consumption and calculates the total daily food needed.
 *
 * @param farmAnimals A map with keys as farm animals and values as their respective daily food consumption in kg.
 * @return The total daily food needed in kg.
 */
fun calculateTotalDailyFood(farmAnimals: Map<String, Double>): Double {

    var totalFood = 0.0
    
    // Loop through each farm animal and calculate their food requirement
    for ((animal, foodConsumption) in farmAnimals) {
        totalFood += foodConsumption
    }
    
    return totalFood
}