/**
 * A social worker needs a program to determine the eligibility of people to receive certain benefits.
 * The program should check if the person is of eligible age, has a low enough income, and is not married.
 *
 * @param age the age of the person
 * @param income the annual income of the person
 * @param maritalStatus true if the person is married, false otherwise
 * @return "Eligible" if the person meets all the requirements, otherwise "Not Eligible"
 */
fun checkEligibility(age: Int, income: Float, maritalStatus: Boolean): String {

    if (age >= 18) {
        if (income < 20000.0) {
            if (!maritalStatus) {
                return "Eligible"
            }
        }
    }
    return "Not Eligible"
}
/**
 * A social worker needs a program to determine the eligibility of people to receive certain benefits.
 * The program should check if the person is of eligible age, has a low enough income, and is not married.
 *
 * @param age the age of the person
 * @param income the annual income of the person
 * @param maritalStatus true if the person is married, false otherwise
 * @return "Eligible" if the person meets all the requirements, otherwise "Not Eligible"
 */
fun checkEligibility(age: Int, income: Float, maritalStatus: Boolean): String {
/**
 * A social worker needs a program to determine the eligibility of people to receive certain benefits.
 * The program should check if the person is of eligible age, has a low enough income, and is not married.
 *
 * @param age the age of the person
 * @param income the annual income of the person
 * @param maritalStatus true if the person is married, false otherwise
 * @return "Eligible" if the person meets all the requirements, otherwise "Not Eligible"
 */
fun checkEligibility(age: Int, income: Float, maritalStatus: Boolean): String {

    if (age >= 18) {
        if (income < 20000.0) {
            if (!maritalStatus) {
                return "Eligible"
            }
        }
    }
    return "Not Eligible"
}