/**
 * This function determines if an item is fashionable based on its temperature suitability and price range.
 *
 * @param item The name of the item.
 * @param temperature The temperature suitability for the item, measured in degrees Celsius.
 * @param price The price of the item in USD.
 * @return A message indicating if the item is fashionable or not.
 */
fun isFashionable(item: String, temperature: Int, price: Float): String {

    return when {
        temperature >= 30 -> {
            if (price >= 500) {
                "The $item is fashionable in hot weather, but it is quite expensive."
            } else {
                "The $item is fashionable in hot weather and it is reasonably priced."
            }
        }
        temperature >= 20 -> {
            if (price >= 300) {
                "The $item is fashionable in warm weather, but it is quite expensive."
            } else {
                "The $item is fashionable in warm weather and it is reasonably priced."
            }
        }
        temperature >= 10 -> {
            if (price >= 200) {
                "The $item is fashionable in cool weather, but it is quite expensive."
            } else {
                "The $item is fashionable in cool weather and it is reasonably priced."
            }
        }
        else -> "The $item is not considered fashionable."
    }
}
/**
 * This function determines if an item is fashionable based on its temperature suitability and price range.
 *
 * @param item The name of the item.
 * @param temperature The temperature suitability for the item, measured in degrees Celsius.
 * @param price The price of the item in USD.
 * @return A message indicating if the item is fashionable or not.
 */
fun isFashionable(item: String, temperature: Int, price: Float): String {
/**
 * This function determines if an item is fashionable based on its temperature suitability and price range.
 *
 * @param item The name of the item.
 * @param temperature The temperature suitability for the item, measured in degrees Celsius.
 * @param price The price of the item in USD.
 * @return A message indicating if the item is fashionable or not.
 */
fun isFashionable(item: String, temperature: Int, price: Float): String {

    return when {
        temperature >= 30 -> {
            if (price >= 500) {
                "The $item is fashionable in hot weather, but it is quite expensive."
            } else {
                "The $item is fashionable in hot weather and it is reasonably priced."
            }
        }
        temperature >= 20 -> {
            if (price >= 300) {
                "The $item is fashionable in warm weather, but it is quite expensive."
            } else {
                "The $item is fashionable in warm weather and it is reasonably priced."
            }
        }
        temperature >= 10 -> {
            if (price >= 200) {
                "The $item is fashionable in cool weather, but it is quite expensive."
            } else {
                "The $item is fashionable in cool weather and it is reasonably priced."
            }
        }
        else -> "The $item is not considered fashionable."
    }
}