/**
 * This function calculates the cost of materials required by an interior designer for a given number of rooms.
 *
 * @param numRooms The number of rooms to design.
 * @return The total cost of materials.
 */
fun interiorDesigner(numRooms: Int): Double {

    var totalCost = 0.0

    repeat(numRooms) {
        print("Enter the area of the room in square feet: ")
        val roomArea = readLine()!!.toDouble()

        val (materialCost, laborCost) = if (roomArea >= 200.0) {
            val materialCost = roomArea * 25.0
            val laborCost = 0.25 * materialCost
            Pair(materialCost, laborCost)
        } else {
            val materialCost = 1000.0
            val laborCost = 0.5 * materialCost
            Pair(materialCost, laborCost)
        }

        val roomCost = materialCost + laborCost
        totalCost += roomCost
    }

    return totalCost
}
/**
 * This function calculates the cost of materials required by an interior designer for a given number of rooms.
 *
 * @param numRooms The number of rooms to design.
 * @return The total cost of materials.
 */
fun interiorDesigner(numRooms: Int): Double {
/**
 * This function calculates the cost of materials required by an interior designer for a given number of rooms.
 *
 * @param numRooms The number of rooms to design.
 * @return The total cost of materials.
 */
fun interiorDesigner(numRooms: Int): Double {

    var totalCost = 0.0

    repeat(numRooms) {
        print("Enter the area of the room in square feet: ")
        val roomArea = readLine()!!.toDouble()

        val (materialCost, laborCost) = if (roomArea >= 200.0) {
            val materialCost = roomArea * 25.0
            val laborCost = 0.25 * materialCost
            Pair(materialCost, laborCost)
        } else {
            val materialCost = 1000.0
            val laborCost = 0.5 * materialCost
            Pair(materialCost, laborCost)
        }

        val roomCost = materialCost + laborCost
        totalCost += roomCost
    }

    return totalCost
}