/**
 * Checks the eligibility of a person for social assistance programs based on age, occupation, and income.
 *
 * @param age The age of the person in years.
 * @param occupation The current occupation of the person.
 * @param income The monthly income of the person in dollars.
 * @return True if the person is eligible for social assistance programs, False otherwise.
 */
fun checkEligibility(age: Int, occupation: String, income: Float): Boolean {

    return age < 18 || (occupation !in listOf("Teacher", "Nurse", "Engineer") && income <= 1000)
}
/**
 * Checks the eligibility of a person for social assistance programs based on age, occupation, and income.
 *
 * @param age The age of the person in years.
 * @param occupation The current occupation of the person.
 * @param income The monthly income of the person in dollars.
 * @return True if the person is eligible for social assistance programs, False otherwise.
 */
fun checkEligibility(age: Int, occupation: String, income: Float): Boolean {
/**
 * Checks the eligibility of a person for social assistance programs based on age, occupation, and income.
 *
 * @param age The age of the person in years.
 * @param occupation The current occupation of the person.
 * @param income The monthly income of the person in dollars.
 * @return True if the person is eligible for social assistance programs, False otherwise.
 */
fun checkEligibility(age: Int, occupation: String, income: Float): Boolean {

    return age < 18 || (occupation !in listOf("Teacher", "Nurse", "Engineer") && income <= 1000)
}