/**
 * Computes the total cost of items after applying discount and tax.
 *
 * @param items A dictionary representing the list of items with their respective prices
 * @param discount The percentage discount to be applied on the total cost
 * @param tax The percentage tax to be applied on the total cost
 * @return The final total cost of the items with discount and tax applied
 */
fun calculateTotalCost(items: Map<String, Double>, discount: Double, tax: Double): Double {

    var totalCost = 0.0

    for ((_, price) in items) {
        totalCost += price
    }

    totalCost -= totalCost * (discount / 100)
    totalCost += totalCost * (tax / 100)

    return totalCost
}
/**
 * Computes the total cost of items after applying discount and tax.
 *
 * @param items A dictionary representing the list of items with their respective prices
 * @param discount The percentage discount to be applied on the total cost
 * @param tax The percentage tax to be applied on the total cost
 * @return The final total cost of the items with discount and tax applied
 */
fun calculateTotalCost(items: Map<String, Double>, discount: Double, tax: Double): Double {
/**
 * Computes the total cost of items after applying discount and tax.
 *
 * @param items A dictionary representing the list of items with their respective prices
 * @param discount The percentage discount to be applied on the total cost
 * @param tax The percentage tax to be applied on the total cost
 * @return The final total cost of the items with discount and tax applied
 */
fun calculateTotalCost(items: Map<String, Double>, discount: Double, tax: Double): Double {

    var totalCost = 0.0

    for ((_, price) in items) {
        totalCost += price
    }

    totalCost -= totalCost * (discount / 100)
    totalCost += totalCost * (tax / 100)

    return totalCost
}