/**
 * The function calculates the total cost of designing a room.
 */
fun calculateTotalCost(roomWidth: Int, roomLength: Int): Int {

    // Calculate the area of the room
    val roomArea = roomWidth * roomLength

    // Determine the base cost based on the room area
    var baseCost = 0
    baseCost = when {
        roomArea > 100 -> 2000
        roomArea in 50..100 -> 1500
        else -> 1000
    }

    // Determine the additional cost based on the room dimensions
    var additionalCost = 0
    if (roomWidth > 5 || roomLength > 5) {
        additionalCost = 500
    }

    // Calculate the total cost by adding the base cost and additional cost
    val totalCost = baseCost + additionalCost

    return totalCost
}
/**
 * The function calculates the total cost of designing a room.
 */
fun calculateTotalCost(roomWidth: Int, roomLength: Int): Int {
/**
 * The function calculates the total cost of designing a room.
 */
fun calculateTotalCost(roomWidth: Int, roomLength: Int): Int {

    // Calculate the area of the room
    val roomArea = roomWidth * roomLength

    // Determine the base cost based on the room area
    var baseCost = 0
    baseCost = when {
        roomArea > 100 -> 2000
        roomArea in 50..100 -> 1500
        else -> 1000
    }

    // Determine the additional cost based on the room dimensions
    var additionalCost = 0
    if (roomWidth > 5 || roomLength > 5) {
        additionalCost = 500
    }

    // Calculate the total cost by adding the base cost and additional cost
    val totalCost = baseCost + additionalCost

    return totalCost
}