/**
 * This function calculates the discount for a veterinarian.
 *
 * The discount depends on two parameters: the age of the customer and whether they are a member or not.
 * If the customer is under 18 or is a member, they get a 10% discount. Otherwise, there is no discount.
 *
 * Complete the code below to calculate the discount correctly.
 */
fun calculateDiscount(age: Int, isMember: Boolean): Int {

    val totalCost = 200
    var discount = 0

    if (age < 18 || isMember) {
        discount = (totalCost * 0.10).toInt()
    }

    val finalCost = totalCost - discount
    return finalCost
}
/**
 * This function calculates the discount for a veterinarian.
 *
 * The discount depends on two parameters: the age of the customer and whether they are a member or not.
 * If the customer is under 18 or is a member, they get a 10% discount. Otherwise, there is no discount.
 *
 * Complete the code below to calculate the discount correctly.
 */
fun calculateDiscount(age: Int, isMember: Boolean): Int {
/**
 * This function calculates the discount for a veterinarian.
 *
 * The discount depends on two parameters: the age of the customer and whether they are a member or not.
 * If the customer is under 18 or is a member, they get a 10% discount. Otherwise, there is no discount.
 *
 * Complete the code below to calculate the discount correctly.
 */
fun calculateDiscount(age: Int, isMember: Boolean): Int {

    val totalCost = 200
    var discount = 0

    if (age < 18 || isMember) {
        discount = (totalCost * 0.10).toInt()
    }

    val finalCost = totalCost - discount
    return finalCost
}