/**
 * You are tasked to determine if a nurse qualifies for a promotion. To be eligible, the nurse must meet
 * ONE of the following criteria:
 * - Have a nursing exam score above 90% OR
 * - Have a GPA above 3.5 AND at least 5 years of experience.
 *
 * Your task is to complete the code by using if-else statements and the OR operator to determine the eligibility
 * of the nurse for the promotion.
 *
 * @param nursingExamScore The nurse's score in the nursing exam, ranging from 0 to 100.
 * @param gpa The nurse's current grade point average.
 * @param yearsExperience The number of years of experience the nurse has.
 * @return "Eligible for promotion" if the nurse meets the promotion criteria, otherwise "Not eligible for promotion".
 */
fun checkQualification(nursingExamScore: Int, gpa: Double, yearsExperience: Int): String {

    return if (nursingExamScore > 90 || (gpa > 3.5 && yearsExperience >= 5)) {
        "Eligible for promotion"
    } else {
        "Not eligible for promotion"
    }
}
/**
 * You are tasked to determine if a nurse qualifies for a promotion. To be eligible, the nurse must meet
 * ONE of the following criteria:
 * - Have a nursing exam score above 90% OR
 * - Have a GPA above 3.5 AND at least 5 years of experience.
 *
 * Your task is to complete the code by using if-else statements and the OR operator to determine the eligibility
 * of the nurse for the promotion.
 *
 * @param nursingExamScore The nurse's score in the nursing exam, ranging from 0 to 100.
 * @param gpa The nurse's current grade point average.
 * @param yearsExperience The number of years of experience the nurse has.
 * @return "Eligible for promotion" if the nurse meets the promotion criteria, otherwise "Not eligible for promotion".
 */
fun checkQualification(nursingExamScore: Int, gpa: Double, yearsExperience: Int): String {
/**
 * You are tasked to determine if a nurse qualifies for a promotion. To be eligible, the nurse must meet
 * ONE of the following criteria:
 * - Have a nursing exam score above 90% OR
 * - Have a GPA above 3.5 AND at least 5 years of experience.
 *
 * Your task is to complete the code by using if-else statements and the OR operator to determine the eligibility
 * of the nurse for the promotion.
 *
 * @param nursingExamScore The nurse's score in the nursing exam, ranging from 0 to 100.
 * @param gpa The nurse's current grade point average.
 * @param yearsExperience The number of years of experience the nurse has.
 * @return "Eligible for promotion" if the nurse meets the promotion criteria, otherwise "Not eligible for promotion".
 */
fun checkQualification(nursingExamScore: Int, gpa: Double, yearsExperience: Int): String {

    return if (nursingExamScore > 90 || (gpa > 3.5 && yearsExperience >= 5)) {
        "Eligible for promotion"
    } else {
        "Not eligible for promotion"
    }
}