/**
 * You are a fashion designer and you have created a catalog of different clothing items.
 * Your goal is to create a loop that iterates through your catalog and returns the total number of skirts and dresses.
 * However, there is a condition to count a skirt or dress:
 * - The skirt or dress must have a price higher than $100.
 * Complete the code below to solve the exercise.
 */
fun loopFashionDesigner(catalog: List<Map<String, Any>>): Int {

    var totalSkirtsAndDresses = 0

    for (item in catalog) {
        if (item["type"] == "skirt" || item["type"] == "dress") {
            if (item["price"] as Int > 100) {
                totalSkirtsAndDresses++
            }
        }
    }

    return totalSkirtsAndDresses
}
/**
 * You are a fashion designer and you have created a catalog of different clothing items.
 * Your goal is to create a loop that iterates through your catalog and returns the total number of skirts and dresses.
 * However, there is a condition to count a skirt or dress:
 * - The skirt or dress must have a price higher than $100.
 * Complete the code below to solve the exercise.
 */
fun loopFashionDesigner(catalog: List<Map<String, Any>>): Int {
/**
 * You are a fashion designer and you have created a catalog of different clothing items.
 * Your goal is to create a loop that iterates through your catalog and returns the total number of skirts and dresses.
 * However, there is a condition to count a skirt or dress:
 * - The skirt or dress must have a price higher than $100.
 * Complete the code below to solve the exercise.
 */
fun loopFashionDesigner(catalog: List<Map<String, Any>>): Int {

    var totalSkirtsAndDresses = 0

    for (item in catalog) {
        if (item["type"] == "skirt" || item["type"] == "dress") {
            if (item["price"] as Int > 100) {
                totalSkirtsAndDresses++
            }
        }
    }

    return totalSkirtsAndDresses
}