/**
 * A farmer wants to hire workers based on their age, possession of a driver's license, and land ownership.
 *
 * Fill in the blanks in the ternary operator to assign the employee_type based on the given conditions:
 * - If the age is less than 18 and the person has a driver's license, assign 'Apprentice' to employee_type.
 *                              - Otherwise, assign 'Unqualified' to employee_type.
 * - If the age is between 18 and 25 (inclusive) and the person owns land, assign 'Experienced' to employee_type.
 *                              - Otherwise, assign 'Trainee' to employee_type.
 * - If the age is greater than 25, assign 'Professional' to employee_type.
 */
fun checkAge(age: Int, hasLicense: Boolean, hasLand: Boolean): String {

    var employeeType = if (age < 18 && hasLicense) "Apprentice" else "Unqualified"
    employeeType = if (age in 18..25 && hasLand) "Experienced" else "Trainee"
    employeeType = if (age > 25) "Professional" else employeeType

    return employeeType
}
/**
 * A farmer wants to hire workers based on their age, possession of a driver's license, and land ownership.
 *
 * Fill in the blanks in the ternary operator to assign the employee_type based on the given conditions:
 * - If the age is less than 18 and the person has a driver's license, assign 'Apprentice' to employee_type.
 *                              - Otherwise, assign 'Unqualified' to employee_type.
 * - If the age is between 18 and 25 (inclusive) and the person owns land, assign 'Experienced' to employee_type.
 *                              - Otherwise, assign 'Trainee' to employee_type.
 * - If the age is greater than 25, assign 'Professional' to employee_type.
 */
fun checkAge(age: Int, hasLicense: Boolean, hasLand: Boolean): String {
/**
 * A farmer wants to hire workers based on their age, possession of a driver's license, and land ownership.
 *
 * Fill in the blanks in the ternary operator to assign the employee_type based on the given conditions:
 * - If the age is less than 18 and the person has a driver's license, assign 'Apprentice' to employee_type.
 *                              - Otherwise, assign 'Unqualified' to employee_type.
 * - If the age is between 18 and 25 (inclusive) and the person owns land, assign 'Experienced' to employee_type.
 *                              - Otherwise, assign 'Trainee' to employee_type.
 * - If the age is greater than 25, assign 'Professional' to employee_type.
 */
fun checkAge(age: Int, hasLicense: Boolean, hasLand: Boolean): String {

    var employeeType = if (age < 18 && hasLicense) "Apprentice" else "Unqualified"
    employeeType = if (age in 18..25 && hasLand) "Experienced" else "Trainee"
    employeeType = if (age > 25) "Professional" else employeeType

    return employeeType
}