/**
 * This function calculates the average salary based on the provided personal information of multiple accountants.
 *
 * @param personalInfo List of dictionaries containing personal information of accountants.
 * @return Average salary of accountants.
 */
fun calculateAverageSalary(personalInfo: List<Map<String, Any>>): Double {

    var totalSalary = 0.0
    var accountantCount = 0

    for (accountant in personalInfo) {
        totalSalary += accountant["salary"] as Double
        accountantCount++
    }

    val averageSalary = totalSalary / accountantCount
    return averageSalary
}
/**
 * This function calculates the average salary based on the provided personal information of multiple accountants.
 *
 * @param personalInfo List of dictionaries containing personal information of accountants.
 * @return Average salary of accountants.
 */
fun calculateAverageSalary(personalInfo: List<Map<String, Any>>): Double {
/**
 * This function calculates the average salary based on the provided personal information of multiple accountants.
 *
 * @param personalInfo List of dictionaries containing personal information of accountants.
 * @return Average salary of accountants.
 */
fun calculateAverageSalary(personalInfo: List<Map<String, Any>>): Double {

    var totalSalary = 0.0
    var accountantCount = 0

    for (accountant in personalInfo) {
        totalSalary += accountant["salary"] as Double
        accountantCount++
    }

    val averageSalary = totalSalary / accountantCount
    return averageSalary
}