/**
 * This function calculates the remaining budget for an interior design project
 * after deducting the costs of materials used.
 *
 * @param projectBudget The initial budget for the project.
 * @param materialCosts A list of float values representing the costs of materials used.
 * @return The remaining budget after deducting the material costs.
 */
fun calculateBudget(projectBudget: Float, materialCosts: List<Float>): Float {

    val totalMaterialCosts = materialCosts.sum()
    var remainingBudget = projectBudget - totalMaterialCosts

    for (cost in materialCosts) {
        if (cost > 1000) {
            remainingBudget -= cost
        }
    }

    return remainingBudget
}
/**
 * This function calculates the remaining budget for an interior design project
 * after deducting the costs of materials used.
 *
 * @param projectBudget The initial budget for the project.
 * @param materialCosts A list of float values representing the costs of materials used.
 * @return The remaining budget after deducting the material costs.
 */
fun calculateBudget(projectBudget: Float, materialCosts: List<Float>): Float {
/**
 * This function calculates the remaining budget for an interior design project
 * after deducting the costs of materials used.
 *
 * @param projectBudget The initial budget for the project.
 * @param materialCosts A list of float values representing the costs of materials used.
 * @return The remaining budget after deducting the material costs.
 */
fun calculateBudget(projectBudget: Float, materialCosts: List<Float>): Float {

    val totalMaterialCosts = materialCosts.sum()
    var remainingBudget = projectBudget - totalMaterialCosts

    for (cost in materialCosts) {
        if (cost > 1000) {
            remainingBudget -= cost
        }
    }

    return remainingBudget
}