/**
 * A social worker wants to determine the eligibility of a person for a social welfare program based on their
 * age, income, and employment status. Complete the code below to implement the logical conditions and operators
 * to determine the eligibility.
 *
 * @param age The age of the person.
 * @param income The annual income of the person.
 * @param employed Whether the person is employed or not.
 * @return True if the person is eligible, False otherwise.
 */
fun checkEligibility(age: Int, income: Double, employed: Boolean): Boolean {

    return when {
        age < 18 -> false
        age >= 65 -> true
        income > 100000 || !employed -> true
        else -> false
    }
}
/**
 * A social worker wants to determine the eligibility of a person for a social welfare program based on their
 * age, income, and employment status. Complete the code below to implement the logical conditions and operators
 * to determine the eligibility.
 *
 * @param age The age of the person.
 * @param income The annual income of the person.
 * @param employed Whether the person is employed or not.
 * @return True if the person is eligible, False otherwise.
 */
fun checkEligibility(age: Int, income: Double, employed: Boolean): Boolean {
/**
 * A social worker wants to determine the eligibility of a person for a social welfare program based on their
 * age, income, and employment status. Complete the code below to implement the logical conditions and operators
 * to determine the eligibility.
 *
 * @param age The age of the person.
 * @param income The annual income of the person.
 * @param employed Whether the person is employed or not.
 * @return True if the person is eligible, False otherwise.
 */
fun checkEligibility(age: Int, income: Double, employed: Boolean): Boolean {

    return when {
        age < 18 -> false
        age >= 65 -> true
        income > 100000 || !employed -> true
        else -> false
    }
}