/**
 * You are an interior designer and you need to calculate the total cost of painting a room.
 *
 * Write a function that takes the name of the room, the area of the room, and the price of the paint per square meter.
 * The function should calculate and return the total cost of painting the room.
 *
 * @param room Name of the room.
 * @param area Area of the room in square meters.
 * @param paintPrice Price of the paint per square meter.
 * @return Total cost of painting the room.
 */
fun calculateTotalCost(room: String, area: Double, paintPrice: Double): String {

    val totalCost = area * paintPrice

    return when {
        area < 10 -> "The room '$room' is too small to be painted."
        area > 1000 -> "The room '$room' is too large to be painted."
        totalCost < 100 -> "The cost to paint the room '$room' is less than $100."
        totalCost > 5000 -> "The cost to paint the room '$room' is more than $5000."
        else -> "The total cost to paint the room '$room' is $totalCost."
    }
}
/**
 * You are an interior designer and you need to calculate the total cost of painting a room.
 *
 * Write a function that takes the name of the room, the area of the room, and the price of the paint per square meter.
 * The function should calculate and return the total cost of painting the room.
 *
 * @param room Name of the room.
 * @param area Area of the room in square meters.
 * @param paintPrice Price of the paint per square meter.
 * @return Total cost of painting the room.
 */
fun calculateTotalCost(room: String, area: Double, paintPrice: Double): String {
/**
 * You are an interior designer and you need to calculate the total cost of painting a room.
 *
 * Write a function that takes the name of the room, the area of the room, and the price of the paint per square meter.
 * The function should calculate and return the total cost of painting the room.
 *
 * @param room Name of the room.
 * @param area Area of the room in square meters.
 * @param paintPrice Price of the paint per square meter.
 * @return Total cost of painting the room.
 */
fun calculateTotalCost(room: String, area: Double, paintPrice: Double): String {

    val totalCost = area * paintPrice

    return when {
        area < 10 -> "The room '$room' is too small to be painted."
        area > 1000 -> "The room '$room' is too large to be painted."
        totalCost < 100 -> "The cost to paint the room '$room' is less than $100."
        totalCost > 5000 -> "The cost to paint the room '$room' is more than $5000."
        else -> "The total cost to paint the room '$room' is $totalCost."
    }
}