/**
 * This function takes a dictionary with sales data as input and returns the average sales amount.
 * The sales data is provided in the form of dictionary where keys are the product names and values are the 
 * corresponding sales amounts.
 */
fun getAverageSales(dictionary: Map<String, Double>): Double {

    var totalSales = 0.0
    var numProducts = 0

    for ((_, sales) in dictionary) {
        totalSales += sales
        numProducts++
    }

    val averageSales = totalSales / numProducts
    return averageSales
}
/**
 * This function takes a dictionary with sales data as input and returns the average sales amount.
 * The sales data is provided in the form of dictionary where keys are the product names and values are the 
 * corresponding sales amounts.
 */
fun getAverageSales(dictionary: Map<String, Double>): Double {
/**
 * This function takes a dictionary with sales data as input and returns the average sales amount.
 * The sales data is provided in the form of dictionary where keys are the product names and values are the 
 * corresponding sales amounts.
 */
fun getAverageSales(dictionary: Map<String, Double>): Double {

    var totalSales = 0.0
    var numProducts = 0

    for ((_, sales) in dictionary) {
        totalSales += sales
        numProducts++
    }

    val averageSales = totalSales / numProducts
    return averageSales
}