/**
 * Calculate the total cost of items after applying a discount percentage
 */
fun calculateTotalCost(items: List<Map<String, String>>, discountPercentage: Double): Double {

    var totalCost = 0.0
    for (item in items) {
        // Complex number representing the item's price
        val price = item["price"]!!.toDouble()

        // Complex number representing the discount percentage
        val discount = discountPercentage

        // Perform arithmetic operation to calculate discounted price
        val discountedPrice = price * (1 - discount)

        // Add the discounted price to the total cost
        totalCost += discountedPrice
    }
    return totalCost
}
/**
 * Calculate the total cost of items after applying a discount percentage
 */
fun calculateTotalCost(items: List<Map<String, String>>, discountPercentage: Double): Double {
/**
 * Calculate the total cost of items after applying a discount percentage
 */
fun calculateTotalCost(items: List<Map<String, String>>, discountPercentage: Double): Double {

    var totalCost = 0.0
    for (item in items) {
        // Complex number representing the item's price
        val price = item["price"]!!.toDouble()

        // Complex number representing the discount percentage
        val discount = discountPercentage

        // Perform arithmetic operation to calculate discounted price
        val discountedPrice = price * (1 - discount)

        // Add the discounted price to the total cost
        totalCost += discountedPrice
    }
    return totalCost
}