/**
 * Calculate the salary of a physician based on their residency status and years of experience
 */
fun calculateSalary(isResident: Boolean, yearsExperience: Int): Int {

    // Using the ternary operator and the is operator, determine the salary based on the given conditions
    val salary = if (isResident) 50000 else if (yearsExperience < 5) 80000 else 120000

    return salary
}
/**
 * Calculate the salary of a physician based on their residency status and years of experience
 */
fun calculateSalary(isResident: Boolean, yearsExperience: Int): Int {
/**
 * Calculate the salary of a physician based on their residency status and years of experience
 */
fun calculateSalary(isResident: Boolean, yearsExperience: Int): Int {

    // Using the ternary operator and the is operator, determine the salary based on the given conditions
    val salary = if (isResident) 50000 else if (yearsExperience < 5) 80000 else 120000

    return salary
}