/**
 * The function takes in a dictionary of expenses and returns the total expenses.
 *
 * @param expenses A dictionary where the keys represent the expense types (e.g., 'Salary', 'Rent', 'Supplies')
 *                 and the values represent the expense amount in dollars.
 * @return The sum of all expense amounts.
 */
fun calculateTotalExpenses(expenses: Map<String, Float>): Float {

    var totalExpenses = 0.0f
    for ((expenseType, amount) in expenses) {
        when (expenseType) {
            "Salary" -> {
                // Write code to handle Salary expenses
            }
            "Rent" -> {
                // Write code to handle Rent expenses
            }
            "Supplies" -> {
                // Write code to handle Supplies expenses
            }
            else -> {
                // Write code to handle other expenses
            }
        }
    }
    return totalExpenses
}
/**
 * The function takes in a dictionary of expenses and returns the total expenses.
 *
 * @param expenses A dictionary where the keys represent the expense types (e.g., 'Salary', 'Rent', 'Supplies')
 *                 and the values represent the expense amount in dollars.
 * @return The sum of all expense amounts.
 */
fun calculateTotalExpenses(expenses: Map<String, Float>): Float {
/**
 * The function takes in a dictionary of expenses and returns the total expenses.
 *
 * @param expenses A dictionary where the keys represent the expense types (e.g., 'Salary', 'Rent', 'Supplies')
 *                 and the values represent the expense amount in dollars.
 * @return The sum of all expense amounts.
 */
fun calculateTotalExpenses(expenses: Map<String, Float>): Float {

    var totalExpenses = 0.0f
    for ((expenseType, amount) in expenses) {
        when (expenseType) {
            "Salary" -> {
                // Write code to handle Salary expenses
            }
            "Rent" -> {
                // Write code to handle Rent expenses
            }
            "Supplies" -> {
                // Write code to handle Supplies expenses
            }
            else -> {
                // Write code to handle other expenses
            }
        }
    }
    return totalExpenses
}