/**
 * The function calculates the total cost of items and labor for an interior design project.
 * It takes a list of items, the number of labor hours required, and the cost per hour for labor.
 *
 * @param items List<Double> A list containing the cost of various items used in the project.
 * @param laborHours Int The number of labor hours required for the project.
 * @param laborCostPerHour Double The cost per hour for labor.
 * @return Double The total cost of items and labor combined.
 */
fun calculateCost(items: List<Double>, laborHours: Int, laborCostPerHour: Double): Double {

    val totalItemCost = items.sum()  // Calculate the total cost of items
    val laborCost = laborHours * laborCostPerHour  // Calculate the total labor cost
    val totalCost = totalItemCost + laborCost  // Calculate the total cost including items and labor
    return totalCost
}

// Example usage
val itemCosts = listOf(250.00, 180.00, 320.00)
/**
 * The function calculates the total cost of items and labor for an interior design project.
 * It takes a list of items, the number of labor hours required, and the cost per hour for labor.
 *
 * @param items List<Double> A list containing the cost of various items used in the project.
 * @param laborHours Int The number of labor hours required for the project.
 * @param laborCostPerHour Double The cost per hour for labor.
 * @return Double The total cost of items and labor combined.
 */
fun calculateCost(items: List<Double>, laborHours: Int, laborCostPerHour: Double): Double {
/**
 * The function calculates the total cost of items and labor for an interior design project.
 * It takes a list of items, the number of labor hours required, and the cost per hour for labor.
 *
 * @param items List<Double> A list containing the cost of various items used in the project.
 * @param laborHours Int The number of labor hours required for the project.
 * @param laborCostPerHour Double The cost per hour for labor.
 * @return Double The total cost of items and labor combined.
 */
fun calculateCost(items: List<Double>, laborHours: Int, laborCostPerHour: Double): Double {

    val totalItemCost = items.sum()  // Calculate the total cost of items
    val laborCost = laborHours * laborCostPerHour  // Calculate the total labor cost
    val totalCost = totalItemCost + laborCost  // Calculate the total cost including items and labor
    return totalCost
}

// Example usage
val itemCosts = listOf(250.00, 180.00, 320.00)