/**
 * Calculate the total cost of designing a room by considering the dimensions of the room, cost per square foot,
 * and any additional costs.
 *
 * @param roomDimensions A list containing the length, width, and height of the room in feet.
 * @param costPerSqft The cost per square foot for designing the room.
 * @param extraCosts A list of additional costs.
 * @return The total cost of designing the room.
 */
fun calculateTotalCost(roomDimensions: List<Int>, costPerSqft: Float, extraCosts: List<Float>): Float {

    // Calculate the volume of the room
    val roomVolume = roomDimensions[0] * roomDimensions[1] * roomDimensions[2]

    // Calculate the total cost by multiplying the volume with the cost per square foot
    var totalCost = roomVolume * costPerSqft

    // Add any extra costs to the total cost
    for (cost in extraCosts) {
        totalCost += cost
    }

    return totalCost
}

val roomDims = listOf(10, 12, 8) // Room dimensions (length, width, height)
val costPerSqft = 50f
/**
 * Calculate the total cost of designing a room by considering the dimensions of the room, cost per square foot,
 * and any additional costs.
 *
 * @param roomDimensions A list containing the length, width, and height of the room in feet.
 * @param costPerSqft The cost per square foot for designing the room.
 * @param extraCosts A list of additional costs.
 * @return The total cost of designing the room.
 */
fun calculateTotalCost(roomDimensions: List<Int>, costPerSqft: Float, extraCosts: List<Float>): Float {
/**
 * Calculate the total cost of designing a room by considering the dimensions of the room, cost per square foot,
 * and any additional costs.
 *
 * @param roomDimensions A list containing the length, width, and height of the room in feet.
 * @param costPerSqft The cost per square foot for designing the room.
 * @param extraCosts A list of additional costs.
 * @return The total cost of designing the room.
 */
fun calculateTotalCost(roomDimensions: List<Int>, costPerSqft: Float, extraCosts: List<Float>): Float {

    // Calculate the volume of the room
    val roomVolume = roomDimensions[0] * roomDimensions[1] * roomDimensions[2]

    // Calculate the total cost by multiplying the volume with the cost per square foot
    var totalCost = roomVolume * costPerSqft

    // Add any extra costs to the total cost
    for (cost in extraCosts) {
        totalCost += cost
    }

    return totalCost
}

val roomDims = listOf(10, 12, 8) // Room dimensions (length, width, height)
val costPerSqft = 50f