/**
 * This function calculates the total sales for a fashion designer based on the quantity and prices of items sold.
 *
 * @param totalItems: the total number of items sold (integer)
 * @param itemPrices: a list of item prices (list of integers)
 *
 * @return totalSales: the total sales generated (integer)
 */
fun calculateSales(totalItems: Int, itemPrices: List<Int>): Int {

    var totalSales = 0
    for (i in 0 until totalItems) {
        // Modify the code inside this for loop to perform operations on integers
        totalSales += itemPrices[i]
    }
    return totalSales
}
/**
 * This function calculates the total sales for a fashion designer based on the quantity and prices of items sold.
 *
 * @param totalItems: the total number of items sold (integer)
 * @param itemPrices: a list of item prices (list of integers)
 *
 * @return totalSales: the total sales generated (integer)
 */
fun calculateSales(totalItems: Int, itemPrices: List<Int>): Int {
/**
 * This function calculates the total sales for a fashion designer based on the quantity and prices of items sold.
 *
 * @param totalItems: the total number of items sold (integer)
 * @param itemPrices: a list of item prices (list of integers)
 *
 * @return totalSales: the total sales generated (integer)
 */
fun calculateSales(totalItems: Int, itemPrices: List<Int>): Int {

    var totalSales = 0
    for (i in 0 until totalItems) {
        // Modify the code inside this for loop to perform operations on integers
        totalSales += itemPrices[i]
    }
    return totalSales
}