/**
 * Calculates the remaining budget after deducting the expenses.
 *
 * @param budget the total budget for the interior design project.
 * @param expenses a list of floats representing the expenses incurred.
 * @return the remaining budget after deducting the expenses.
 */
fun calculateBudget(budget: Double, expenses: List<String>): Double {

    var remainingBudget = budget

    try {
        for (expense in expenses) {
            remainingBudget -= expense.toDouble()
        }
    } catch (e: NumberFormatException) {
        println("Invalid expense value. Please provide a valid number.")
    }

    return remainingBudget
}
/**
 * Calculates the remaining budget after deducting the expenses.
 *
 * @param budget the total budget for the interior design project.
 * @param expenses a list of floats representing the expenses incurred.
 * @return the remaining budget after deducting the expenses.
 */
fun calculateBudget(budget: Double, expenses: List<String>): Double {
/**
 * Calculates the remaining budget after deducting the expenses.
 *
 * @param budget the total budget for the interior design project.
 * @param expenses a list of floats representing the expenses incurred.
 * @return the remaining budget after deducting the expenses.
 */
fun calculateBudget(budget: Double, expenses: List<String>): Double {

    var remainingBudget = budget

    try {
        for (expense in expenses) {
            remainingBudget -= expense.toDouble()
        }
    } catch (e: NumberFormatException) {
        println("Invalid expense value. Please provide a valid number.")
    }

    return remainingBudget
}