/**
 * This exercise is designed to test your ability to use for loops and the NOT operator in Kotlin.
 * You are a fashion designer and you would like to calculate the discounted prices for a list of items based on a certain discount.
 * Your task is to complete the code by iterating through the list of items and applying the discount to each item.
 * The items are given as a list of prices, and the discount is a percentage.
 * You need to return a new list with the discounted prices.
 * For example, if the list of items is [100, 50, 75, 80] and the discount is 20, the expected output would be [80.0, 40.0, 60.0, 64.0].
 * Make sure to use a for loop and the NOT operator to solve the exercise.
 */
fun calculateDiscountedPrices(items: List<Double>, discount: Int): List<Double> {

    val discountedPrices = mutableListOf<Double>()
    for (item in items) {
        val discountedPrice = item * (1 - discount / 100.0)
        discountedPrices.add(discountedPrice)
    }
    return discountedPrices
}
/**
 * This exercise is designed to test your ability to use for loops and the NOT operator in Kotlin.
 * You are a fashion designer and you would like to calculate the discounted prices for a list of items based on a certain discount.
 * Your task is to complete the code by iterating through the list of items and applying the discount to each item.
 * The items are given as a list of prices, and the discount is a percentage.
 * You need to return a new list with the discounted prices.
 * For example, if the list of items is [100, 50, 75, 80] and the discount is 20, the expected output would be [80.0, 40.0, 60.0, 64.0].
 * Make sure to use a for loop and the NOT operator to solve the exercise.
 */
fun calculateDiscountedPrices(items: List<Double>, discount: Int): List<Double> {
/**
 * This exercise is designed to test your ability to use for loops and the NOT operator in Kotlin.
 * You are a fashion designer and you would like to calculate the discounted prices for a list of items based on a certain discount.
 * Your task is to complete the code by iterating through the list of items and applying the discount to each item.
 * The items are given as a list of prices, and the discount is a percentage.
 * You need to return a new list with the discounted prices.
 * For example, if the list of items is [100, 50, 75, 80] and the discount is 20, the expected output would be [80.0, 40.0, 60.0, 64.0].
 * Make sure to use a for loop and the NOT operator to solve the exercise.
 */
fun calculateDiscountedPrices(items: List<Double>, discount: Int): List<Double> {

    val discountedPrices = mutableListOf<Double>()
    for (item in items) {
        val discountedPrice = item * (1 - discount / 100.0)
        discountedPrices.add(discountedPrice)
    }
    return discountedPrices
}