/**
 * A carpenter wants to calculate the material required to cover a room with doors and windows.
 * The function takes the total area of the room, area of each door, and area of each window as inputs.
 * The function calculates the net area to be covered after subtracting the door and window areas.
 * The function should return the material required to cover the remaining area.
 */
fun calculateMaterialRequired(roomArea: Double, doorArea: Double, windowArea: Double): Double {

    val remainingArea = roomArea - doorArea - windowArea

    val materialRequired = if (remainingArea > 0) {
        remainingArea
    } else {
        0.0
    }

    return materialRequired
}
/**
 * A carpenter wants to calculate the material required to cover a room with doors and windows.
 * The function takes the total area of the room, area of each door, and area of each window as inputs.
 * The function calculates the net area to be covered after subtracting the door and window areas.
 * The function should return the material required to cover the remaining area.
 */
fun calculateMaterialRequired(roomArea: Double, doorArea: Double, windowArea: Double): Double {
/**
 * A carpenter wants to calculate the material required to cover a room with doors and windows.
 * The function takes the total area of the room, area of each door, and area of each window as inputs.
 * The function calculates the net area to be covered after subtracting the door and window areas.
 * The function should return the material required to cover the remaining area.
 */
fun calculateMaterialRequired(roomArea: Double, doorArea: Double, windowArea: Double): Double {

    val remainingArea = roomArea - doorArea - windowArea

    val materialRequired = if (remainingArea > 0) {
        remainingArea
    } else {
        0.0
    }

    return materialRequired
}