/**
 * Determines whether an engineer is eligible for a job based on their age, experience, and education.
 *
 * @param engineerAge The age of the engineer.
 * @param engineerExperience The number of years of experience the engineer has.
 * @param engineerEducation The highest level of education the engineer has completed. It can take one of the three values: "Bachelors", "Masters", or "PhD".
 * @return True if the engineer is eligible, False otherwise.
 */
fun personEligible(engineerAge: Int, engineerExperience: Int, engineerEducation: String): Boolean {

    // Checking if the engineer is underage or has enough experience
    if (engineerAge < 18 || engineerExperience < 3) {
        return false
    }

    // Checking the education level of the engineer
    return when (engineerEducation) {
        "Bachelors" -> false
        "Masters", "PhD" -> true
        else -> true
    }
}
/**
 * Determines whether an engineer is eligible for a job based on their age, experience, and education.
 *
 * @param engineerAge The age of the engineer.
 * @param engineerExperience The number of years of experience the engineer has.
 * @param engineerEducation The highest level of education the engineer has completed. It can take one of the three values: "Bachelors", "Masters", or "PhD".
 * @return True if the engineer is eligible, False otherwise.
 */
fun personEligible(engineerAge: Int, engineerExperience: Int, engineerEducation: String): Boolean {
/**
 * Determines whether an engineer is eligible for a job based on their age, experience, and education.
 *
 * @param engineerAge The age of the engineer.
 * @param engineerExperience The number of years of experience the engineer has.
 * @param engineerEducation The highest level of education the engineer has completed. It can take one of the three values: "Bachelors", "Masters", or "PhD".
 * @return True if the engineer is eligible, False otherwise.
 */
fun personEligible(engineerAge: Int, engineerExperience: Int, engineerEducation: String): Boolean {

    // Checking if the engineer is underage or has enough experience
    if (engineerAge < 18 || engineerExperience < 3) {
        return false
    }

    // Checking the education level of the engineer
    return when (engineerEducation) {
        "Bachelors" -> false
        "Masters", "PhD" -> true
        else -> true
    }
}