/**
 * Create a dictionary for an economist that includes income, expenses and calculates the final income after tax deductions.
 */
fun createEconomistDict(income: Double, expenses: Double, taxRate: Double): Map<String, Double> {

    // Calculate the final income after tax deductions
    val finalIncome = income - (expenses * taxRate)

    // Create the dictionary
    val economistDict = mapOf(
        "Income" to income,
        "Expenses" to expenses,
        "Tax Rate" to taxRate,
        "Final Income" to finalIncome
    )

    return economistDict
}
/**
 * Create a dictionary for an economist that includes income, expenses and calculates the final income after tax deductions.
 */
fun createEconomistDict(income: Double, expenses: Double, taxRate: Double): Map<String, Double> {
/**
 * Create a dictionary for an economist that includes income, expenses and calculates the final income after tax deductions.
 */
fun createEconomistDict(income: Double, expenses: Double, taxRate: Double): Map<String, Double> {

    // Calculate the final income after tax deductions
    val finalIncome = income - (expenses * taxRate)

    // Create the dictionary
    val economistDict = mapOf(
        "Income" to income,
        "Expenses" to expenses,
        "Tax Rate" to taxRate,
        "Final Income" to finalIncome
    )

    return economistDict
}