/**
 * This function takes a dictionary of expenses for different categories and returns the total income
 * after applying certain conditions using conditional statements and loops.
 */
fun calculateTotalIncome(expenses: Map<String, Double>): Double {

    var totalIncome = 0.0

    for ((category, amount) in expenses) {
        if (category !in listOf("Rent", "Utilities", "Transportation", "Healthcare")) {
            val income = amount * 1.5
            totalIncome += income
        }
    }

    return totalIncome
}
/**
 * This function takes a dictionary of expenses for different categories and returns the total income
 * after applying certain conditions using conditional statements and loops.
 */
fun calculateTotalIncome(expenses: Map<String, Double>): Double {
/**
 * This function takes a dictionary of expenses for different categories and returns the total income
 * after applying certain conditions using conditional statements and loops.
 */
fun calculateTotalIncome(expenses: Map<String, Double>): Double {

    var totalIncome = 0.0

    for ((category, amount) in expenses) {
        if (category !in listOf("Rent", "Utilities", "Transportation", "Healthcare")) {
            val income = amount * 1.5
            totalIncome += income
        }
    }

    return totalIncome
}