/**
 * This function helps an interior designer to plan the design for a customer's room based on the room type.
 *
 * @param customerName Name of the customer.
 * @param roomType Type of the room, such as living room, bedroom, kitchen, etc.
 * @return A personalized design plan for the customer's room.
 * @throws IllegalArgumentException If the room type is not supported.
 */
fun designInterior(customerName: String, roomType: String): String {

    // Perform initial checks for customer preferences
    if (customerName.isEmpty()) {
        return "Please enter a valid customer name."
    }

    // Prepare design plan
    var designPlan = ""

    // Check room type to create a unique design plan
    when (roomType.toLowerCase()) {
        "living room" -> {
            designPlan += "1. Start with selecting a color scheme.\n"
            designPlan += "2. Choose an appropriate furniture layout.\n"
            designPlan += "3. Consider lighting options.\n"
            designPlan += "4. Add decorative accessories.\n"
            designPlan += "5. Finalize with floor coverings and window treatments."
        }
        "bedroom" -> {
            // Add design plan for bedroom
            designPlan += "1. Select a calming color palette.\n"
            designPlan += "2. Choose a comfortable bed and bedding.\n"
            designPlan += "3. Create a cozy reading nook.\n"
            designPlan += "4. Add storage solutions.\n"
            designPlan += "5. Personalize with decor and artwork."
        }
        else -> throw IllegalArgumentException("Unsupported room type: $roomType")
    }

    return designPlan
}
/**
 * This function helps an interior designer to plan the design for a customer's room based on the room type.
 *
 * @param customerName Name of the customer.
 * @param roomType Type of the room, such as living room, bedroom, kitchen, etc.
 * @return A personalized design plan for the customer's room.
 * @throws IllegalArgumentException If the room type is not supported.
 */
fun designInterior(customerName: String, roomType: String): String {
/**
 * This function helps an interior designer to plan the design for a customer's room based on the room type.
 *
 * @param customerName Name of the customer.
 * @param roomType Type of the room, such as living room, bedroom, kitchen, etc.
 * @return A personalized design plan for the customer's room.
 * @throws IllegalArgumentException If the room type is not supported.
 */
fun designInterior(customerName: String, roomType: String): String {

    // Perform initial checks for customer preferences
    if (customerName.isEmpty()) {
        return "Please enter a valid customer name."
    }

    // Prepare design plan
    var designPlan = ""

    // Check room type to create a unique design plan
    when (roomType.toLowerCase()) {
        "living room" -> {
            designPlan += "1. Start with selecting a color scheme.\n"
            designPlan += "2. Choose an appropriate furniture layout.\n"
            designPlan += "3. Consider lighting options.\n"
            designPlan += "4. Add decorative accessories.\n"
            designPlan += "5. Finalize with floor coverings and window treatments."
        }
        "bedroom" -> {
            // Add design plan for bedroom
            designPlan += "1. Select a calming color palette.\n"
            designPlan += "2. Choose a comfortable bed and bedding.\n"
            designPlan += "3. Create a cozy reading nook.\n"
            designPlan += "4. Add storage solutions.\n"
            designPlan += "5. Personalize with decor and artwork."
        }
        else -> throw IllegalArgumentException("Unsupported room type: $roomType")
    }

    return designPlan
}