/**
 * This function takes a budget and a list of item prices and calculates the total cost of the items.
 * The budget is multiplied by the total number of items and the result is checked if it is less than the budget.
 */
fun calculateTotalCost(budget: Double, items: List<Double>): String {

    var totalCost = budget  // Initialize the total cost variable with the budget

    // Iterate through each item price in the items list
    for (itemPrice in items) {
        totalCost *= itemPrice  // Multiply the total cost by the current item price
    }

    // Check if the total cost is less than the budget
    return if (totalCost < budget) {
        "The total cost of the items is less than the budget. Total Cost: $totalCost"
    } else {
        "The total cost of the items is greater than or equal to the budget. Total Cost: $totalCost"
    }
}
/**
 * This function takes a budget and a list of item prices and calculates the total cost of the items.
 * The budget is multiplied by the total number of items and the result is checked if it is less than the budget.
 */
fun calculateTotalCost(budget: Double, items: List<Double>): String {
/**
 * This function takes a budget and a list of item prices and calculates the total cost of the items.
 * The budget is multiplied by the total number of items and the result is checked if it is less than the budget.
 */
fun calculateTotalCost(budget: Double, items: List<Double>): String {

    var totalCost = budget  // Initialize the total cost variable with the budget

    // Iterate through each item price in the items list
    for (itemPrice in items) {
        totalCost *= itemPrice  // Multiply the total cost by the current item price
    }

    // Check if the total cost is less than the budget
    return if (totalCost < budget) {
        "The total cost of the items is less than the budget. Total Cost: $totalCost"
    } else {
        "The total cost of the items is greater than or equal to the budget. Total Cost: $totalCost"
    }
}