/**
 * This function calculates the average salary of a group of musicians.
 * It takes a list of musicians as input and returns the average salary.
 *
 * @param musicians A list of dictionaries, each representing a musician and their salary.
 * @return The average salary of the musicians group.
 */
fun calculateAvgSalary(musicians: List<Map<String, Int>>): Float {

    var totalSalary = 0

    for (musician in musicians) {
        totalSalary += musician["salary"] ?: 0
    }

    val avgSalary = totalSalary.toFloat() / musicians.size
    return avgSalary
}
/**
 * This function calculates the average salary of a group of musicians.
 * It takes a list of musicians as input and returns the average salary.
 *
 * @param musicians A list of dictionaries, each representing a musician and their salary.
 * @return The average salary of the musicians group.
 */
fun calculateAvgSalary(musicians: List<Map<String, Int>>): Float {
/**
 * This function calculates the average salary of a group of musicians.
 * It takes a list of musicians as input and returns the average salary.
 *
 * @param musicians A list of dictionaries, each representing a musician and their salary.
 * @return The average salary of the musicians group.
 */
fun calculateAvgSalary(musicians: List<Map<String, Int>>): Float {

    var totalSalary = 0

    for (musician in musicians) {
        totalSalary += musician["salary"] ?: 0
    }

    val avgSalary = totalSalary.toFloat() / musicians.size
    return avgSalary
}