/**
 * As a social worker, you need to determine the eligibility of clients for a particular program.
 * Consider that the criteria to be eligible include:
 * 1. The age of the client must be between 18 and 65 (inclusive).
 * 2. The income of the client must be less than or equal to $100,000.
 * 3. The client must have at least one child.
 *
 * You are given three variables:
 * - age: an integer representing the age of the client.
 * - income: a floating-point number representing the income of the client.
 * - hasChildren: a boolean value indicating whether the client has children (true) or not (false).
 *
 * Your task is to complete the code to check if a client is eligible for the program.
 * If the client meets all the criteria, return true; otherwise, return false.
 */
fun findEligibleClients(age: Int, income: Double, hasChildren: Boolean): Boolean {

    if (age !in 18..65) {
        return false
    }

    if (income > 100000) {
        return false
    }

    if (!hasChildren) {
        return false
    }

    return true
}
/**
 * As a social worker, you need to determine the eligibility of clients for a particular program.
 * Consider that the criteria to be eligible include:
 * 1. The age of the client must be between 18 and 65 (inclusive).
 * 2. The income of the client must be less than or equal to $100,000.
 * 3. The client must have at least one child.
 *
 * You are given three variables:
 * - age: an integer representing the age of the client.
 * - income: a floating-point number representing the income of the client.
 * - hasChildren: a boolean value indicating whether the client has children (true) or not (false).
 *
 * Your task is to complete the code to check if a client is eligible for the program.
 * If the client meets all the criteria, return true; otherwise, return false.
 */
fun findEligibleClients(age: Int, income: Double, hasChildren: Boolean): Boolean {
/**
 * As a social worker, you need to determine the eligibility of clients for a particular program.
 * Consider that the criteria to be eligible include:
 * 1. The age of the client must be between 18 and 65 (inclusive).
 * 2. The income of the client must be less than or equal to $100,000.
 * 3. The client must have at least one child.
 *
 * You are given three variables:
 * - age: an integer representing the age of the client.
 * - income: a floating-point number representing the income of the client.
 * - hasChildren: a boolean value indicating whether the client has children (true) or not (false).
 *
 * Your task is to complete the code to check if a client is eligible for the program.
 * If the client meets all the criteria, return true; otherwise, return false.
 */
fun findEligibleClients(age: Int, income: Double, hasChildren: Boolean): Boolean {

    if (age !in 18..65) {
        return false
    }

    if (income > 100000) {
        return false
    }

    if (!hasChildren) {
        return false
    }

    return true
}