/**
 * This function calculates the total cost for an interior design project based on project cost,
 * area of the space, whether it is a luxury project, and whether it's discounted or not.
 *
 * @param projectCost Total cost of the project.
 * @param area Area of the space in square meters.
 * @param isLuxury Indicates whether it is a luxury project or not.
 * @param isDiscounted Indicates whether there is a discount for the project.
 * @return Total cost after applying discounts and luxury factors.
 */
fun calculateDesignCost(projectCost: Double, area: Double, isLuxury: Boolean, isDiscounted: Boolean): Double {

    val baseCost = projectCost * area

    // Calculate discount factor based on whether there is a discount
    val discountFactor = if (isDiscounted) 0.8 else 1.0

    // Calculate luxury factor based on whether it is a luxury project
    val luxuryFactor = if (isLuxury) 1.5 else 1.0

    // Calculate total cost by applying discount and luxury factors
    val totalCost = baseCost * discountFactor * luxuryFactor

    return totalCost
}

// Example usage
val projectCost = 250.0
/**
 * This function calculates the total cost for an interior design project based on project cost,
 * area of the space, whether it is a luxury project, and whether it's discounted or not.
 *
 * @param projectCost Total cost of the project.
 * @param area Area of the space in square meters.
 * @param isLuxury Indicates whether it is a luxury project or not.
 * @param isDiscounted Indicates whether there is a discount for the project.
 * @return Total cost after applying discounts and luxury factors.
 */
fun calculateDesignCost(projectCost: Double, area: Double, isLuxury: Boolean, isDiscounted: Boolean): Double {
/**
 * This function calculates the total cost for an interior design project based on project cost,
 * area of the space, whether it is a luxury project, and whether it's discounted or not.
 *
 * @param projectCost Total cost of the project.
 * @param area Area of the space in square meters.
 * @param isLuxury Indicates whether it is a luxury project or not.
 * @param isDiscounted Indicates whether there is a discount for the project.
 * @return Total cost after applying discounts and luxury factors.
 */
fun calculateDesignCost(projectCost: Double, area: Double, isLuxury: Boolean, isDiscounted: Boolean): Double {

    val baseCost = projectCost * area

    // Calculate discount factor based on whether there is a discount
    val discountFactor = if (isDiscounted) 0.8 else 1.0

    // Calculate luxury factor based on whether it is a luxury project
    val luxuryFactor = if (isLuxury) 1.5 else 1.0

    // Calculate total cost by applying discount and luxury factors
    val totalCost = baseCost * discountFactor * luxuryFactor

    return totalCost
}

// Example usage
val projectCost = 250.0