/**
 * This function calculates the total cost of an interior design project based on the number of rooms and the price per square foot.
 *
 * @param numRooms The number of rooms in the project.
 * @param pricePerSqft The price per square foot for interior design.
 * @return The total cost of the interior design project.
 */
fun calculateCost(numRooms: Int, pricePerSqft: Double): Double {

    var totalCost = 0.0
    var roomCount = 1

    while (roomCount <= numRooms) {
        print("Enter the area of room $roomCount in square feet: ")
        val area = readLine()!!.toDouble()
        totalCost += area * pricePerSqft
        roomCount++
    }

    return totalCost
}
/**
 * This function calculates the total cost of an interior design project based on the number of rooms and the price per square foot.
 *
 * @param numRooms The number of rooms in the project.
 * @param pricePerSqft The price per square foot for interior design.
 * @return The total cost of the interior design project.
 */
fun calculateCost(numRooms: Int, pricePerSqft: Double): Double {
/**
 * This function calculates the total cost of an interior design project based on the number of rooms and the price per square foot.
 *
 * @param numRooms The number of rooms in the project.
 * @param pricePerSqft The price per square foot for interior design.
 * @return The total cost of the interior design project.
 */
fun calculateCost(numRooms: Int, pricePerSqft: Double): Double {

    var totalCost = 0.0
    var roomCount = 1

    while (roomCount <= numRooms) {
        print("Enter the area of room $roomCount in square feet: ")
        val area = readLine()!!.toDouble()
        totalCost += area * pricePerSqft
        roomCount++
    }

    return totalCost
}