/**
 * In an interior design project, calculate the total cost by applying the discount and including the tax.
 *
 * @param itemCost The cost of the item before discount and tax.
 * @param discountPercentage The percentage of discount applied to the item cost.
 * @param taxRate The tax rate applied to the discounted item cost.
 * @return The total cost after applying the discount and tax.
 *
 * Example:
 * calculateTotalCost(1000, 20, 10) // 1080
 */
fun calculateTotalCost(itemCost: Int, discountPercentage: Float, taxRate: Float): Int {

    val discountAmount = (itemCost * (discountPercentage / 100)).toInt()
    val discountedCost = itemCost - discountAmount
    val taxAmount = (discountedCost * (taxRate / 100)).toInt()
    val totalCost = discountedCost + taxAmount

    return totalCost
}
/**
 * In an interior design project, calculate the total cost by applying the discount and including the tax.
 *
 * @param itemCost The cost of the item before discount and tax.
 * @param discountPercentage The percentage of discount applied to the item cost.
 * @param taxRate The tax rate applied to the discounted item cost.
 * @return The total cost after applying the discount and tax.
 *
 * Example:
 * calculateTotalCost(1000, 20, 10) // 1080
 */
fun calculateTotalCost(itemCost: Int, discountPercentage: Float, taxRate: Float): Int {
/**
 * In an interior design project, calculate the total cost by applying the discount and including the tax.
 *
 * @param itemCost The cost of the item before discount and tax.
 * @param discountPercentage The percentage of discount applied to the item cost.
 * @param taxRate The tax rate applied to the discounted item cost.
 * @return The total cost after applying the discount and tax.
 *
 * Example:
 * calculateTotalCost(1000, 20, 10) // 1080
 */
fun calculateTotalCost(itemCost: Int, discountPercentage: Float, taxRate: Float): Int {

    val discountAmount = (itemCost * (discountPercentage / 100)).toInt()
    val discountedCost = itemCost - discountAmount
    val taxAmount = (discountedCost * (taxRate / 100)).toInt()
    val totalCost = discountedCost + taxAmount

    return totalCost
}