/**
 * This function designs the interior of a room by calculating the area, circumference, and cost.
 */
fun designInterior() {

    println("Enter the width of the room in feet: ")
    val width = readLine()?.toFloatOrNull() ?: return

    println("Enter the length of the room in feet: ")
    val length = readLine()?.toFloatOrNull() ?: return

    if (width <= 0 || length <= 0) {
        println("Invalid dimensions. Width and length must be positive numbers.")
        return
    }

    val area = calculateRoomArea(width, length)

    if (area <= 0) {
        println("Invalid area. Please check the dimensions of the room.")
        return
    }

    println("The area is: $area square feet.")
}

fun calculateRoomArea(width: Float, length: Float): Float {
    return width * length
}
/**
 * This function designs the interior of a room by calculating the area, circumference, and cost.
 */
fun designInterior() {
/**
 * This function designs the interior of a room by calculating the area, circumference, and cost.
 */
fun designInterior() {

    println("Enter the width of the room in feet: ")
    val width = readLine()?.toFloatOrNull() ?: return

    println("Enter the length of the room in feet: ")
    val length = readLine()?.toFloatOrNull() ?: return

    if (width <= 0 || length <= 0) {
        println("Invalid dimensions. Width and length must be positive numbers.")
        return
    }

    val area = calculateRoomArea(width, length)

    if (area <= 0) {
        println("Invalid area. Please check the dimensions of the room.")
        return
    }

    println("The area is: $area square feet.")
}

fun calculateRoomArea(width: Float, length: Float): Float {
    return width * length
}