/**
 * Given a dictionary of expenses where the keys represent different categories of expenses and the values represent
 * the expense amount, calculate the average expense across all categories.
 *
 * @param expensesDict A dictionary where the keys are strings representing expense categories and the values are
 *                     floating-point numbers representing the expense amounts.
 * @return The average expense across all categories.
 */
fun calculateAverageExpenses(expensesDict: Map<String, Double>): Double {

    var totalExpense = 0.0
    var numCategories = 0

    for ((_, amount) in expensesDict) {
        totalExpense += amount
        numCategories++
    }

    val averageExpense = totalExpense / numCategories
    return averageExpense
}
/**
 * Given a dictionary of expenses where the keys represent different categories of expenses and the values represent
 * the expense amount, calculate the average expense across all categories.
 *
 * @param expensesDict A dictionary where the keys are strings representing expense categories and the values are
 *                     floating-point numbers representing the expense amounts.
 * @return The average expense across all categories.
 */
fun calculateAverageExpenses(expensesDict: Map<String, Double>): Double {
/**
 * Given a dictionary of expenses where the keys represent different categories of expenses and the values represent
 * the expense amount, calculate the average expense across all categories.
 *
 * @param expensesDict A dictionary where the keys are strings representing expense categories and the values are
 *                     floating-point numbers representing the expense amounts.
 * @return The average expense across all categories.
 */
fun calculateAverageExpenses(expensesDict: Map<String, Double>): Double {

    var totalExpense = 0.0
    var numCategories = 0

    for ((_, amount) in expensesDict) {
        totalExpense += amount
        numCategories++
    }

    val averageExpense = totalExpense / numCategories
    return averageExpense
}