/**
 * You are working as an interior designer and want to calculate the total cost of a project.
 * The area of the project and the cost of the materials per square foot are given as inputs.
 * The function should return the total cost of the project.
 *
 * Hint: Use the ternary operator to calculate the total cost.
 * If the area is greater than 1000 square feet, apply a 10% discount on the materials cost.
 *
 * @param area The area of the project in square feet.
 * @param materials The cost of materials per square foot.
 * @return The total cost of the project.
 */
fun calculateTotalCost(area: Double, materials: Double): Double {

    val costBeforeDiscount = area * materials
    val discount = if (area > 1000) costBeforeDiscount * 0.10 else 0.0
    val totalCost = costBeforeDiscount - discount
    return totalCost
}
/**
 * You are working as an interior designer and want to calculate the total cost of a project.
 * The area of the project and the cost of the materials per square foot are given as inputs.
 * The function should return the total cost of the project.
 *
 * Hint: Use the ternary operator to calculate the total cost.
 * If the area is greater than 1000 square feet, apply a 10% discount on the materials cost.
 *
 * @param area The area of the project in square feet.
 * @param materials The cost of materials per square foot.
 * @return The total cost of the project.
 */
fun calculateTotalCost(area: Double, materials: Double): Double {
/**
 * You are working as an interior designer and want to calculate the total cost of a project.
 * The area of the project and the cost of the materials per square foot are given as inputs.
 * The function should return the total cost of the project.
 *
 * Hint: Use the ternary operator to calculate the total cost.
 * If the area is greater than 1000 square feet, apply a 10% discount on the materials cost.
 *
 * @param area The area of the project in square feet.
 * @param materials The cost of materials per square foot.
 * @return The total cost of the project.
 */
fun calculateTotalCost(area: Double, materials: Double): Double {

    val costBeforeDiscount = area * materials
    val discount = if (area > 1000) costBeforeDiscount * 0.10 else 0.0
    val totalCost = costBeforeDiscount - discount
    return totalCost
}