/**
 * The function takes in a dictionary representing a farm's inventory and a bonus value.
 * It iterates through the values in the inventory and multiplies them with the bonus value to update the inventory.
 * The updated inventory is returned.
 *
 * @param farmInventory A dictionary representing the farm's inventory.
 * @param bonus A bonus value to be multiplied with each inventory value.
 * @return The updated farm inventory after multiplying each value with the bonus.
 */
fun updateFarmInventory(farmInventory: MutableMap<String, Double>, bonus: Double): MutableMap<String, Double> {

    for ((item, quantity) in farmInventory) {
        farmInventory[item] = quantity * bonus
    }
    return farmInventory
}

// Example usage
/**
 * The function takes in a dictionary representing a farm's inventory and a bonus value.
 * It iterates through the values in the inventory and multiplies them with the bonus value to update the inventory.
 * The updated inventory is returned.
 *
 * @param farmInventory A dictionary representing the farm's inventory.
 * @param bonus A bonus value to be multiplied with each inventory value.
 * @return The updated farm inventory after multiplying each value with the bonus.
 */
fun updateFarmInventory(farmInventory: MutableMap<String, Double>, bonus: Double): MutableMap<String, Double> {
/**
 * The function takes in a dictionary representing a farm's inventory and a bonus value.
 * It iterates through the values in the inventory and multiplies them with the bonus value to update the inventory.
 * The updated inventory is returned.
 *
 * @param farmInventory A dictionary representing the farm's inventory.
 * @param bonus A bonus value to be multiplied with each inventory value.
 * @return The updated farm inventory after multiplying each value with the bonus.
 */
fun updateFarmInventory(farmInventory: MutableMap<String, Double>, bonus: Double): MutableMap<String, Double> {

    for ((item, quantity) in farmInventory) {
        farmInventory[item] = quantity * bonus
    }
    return farmInventory
}

// Example usage