/**
 * This function takes a design and a color as input parameters and returns whether a dress can be made with that design and color.
 *
 * @param design The design of the dress.
 * @param color The color of the dress.
 * @return A message indicating whether the dress can be made or not.
 */
fun dressPattern(design: String, color: String): String {

    return when (design) {
        "Floral" -> {
            when (color) {
                "Red" -> "A red floral dress can be made."
                "Blue" -> "A blue floral dress can be made."
                "Green" -> "A green floral dress can be made."
                else -> "Sorry, we can't make a floral dress in that color."
            }
        }
        "Striped" -> {
            when (color) {
                "Yellow" -> "A yellow striped dress can be made."
                "Black" -> "A black striped dress can be made."
                "White" -> "A white striped dress can be made."
                else -> "Sorry, we can't make a striped dress in that color."
            }
        }
        else -> "Unknown design."
    }
}
/**
 * This function takes a design and a color as input parameters and returns whether a dress can be made with that design and color.
 *
 * @param design The design of the dress.
 * @param color The color of the dress.
 * @return A message indicating whether the dress can be made or not.
 */
fun dressPattern(design: String, color: String): String {
/**
 * This function takes a design and a color as input parameters and returns whether a dress can be made with that design and color.
 *
 * @param design The design of the dress.
 * @param color The color of the dress.
 * @return A message indicating whether the dress can be made or not.
 */
fun dressPattern(design: String, color: String): String {

    return when (design) {
        "Floral" -> {
            when (color) {
                "Red" -> "A red floral dress can be made."
                "Blue" -> "A blue floral dress can be made."
                "Green" -> "A green floral dress can be made."
                else -> "Sorry, we can't make a floral dress in that color."
            }
        }
        "Striped" -> {
            when (color) {
                "Yellow" -> "A yellow striped dress can be made."
                "Black" -> "A black striped dress can be made."
                "White" -> "A white striped dress can be made."
                else -> "Sorry, we can't make a striped dress in that color."
            }
        }
        else -> "Unknown design."
    }
}