/**
 * This function determines the membership status of a social worker based on their age and income.
 *
 * @param age The age of the social worker.
 * @param income The annual income of the social worker.
 * @return The membership status of the social worker ('Full', 'Partial', or 'None').
 */
fun findMembershipStatus(age: Int, income: Double): String {

    // Determine membership status using nested if-else statements
    return when {
        age < 18 -> "None" // Underage workers are not eligible for membership
        income < 10000 -> "None" // Workers with income less than $10,000 are not eligible for membership
        age >= 60 && income >= 60000 -> "Full" // Workers aged 60 or above with income greater than or equal to $60,000 have full membership
        age >= 40 && income >= 40000 -> "Full" // Workers aged 40 or above with income greater than or equal to $40,000 have full membership
        else -> "Partial" // Workers who do not meet the above criteria have partial membership
    }
}
/**
 * This function determines the membership status of a social worker based on their age and income.
 *
 * @param age The age of the social worker.
 * @param income The annual income of the social worker.
 * @return The membership status of the social worker ('Full', 'Partial', or 'None').
 */
fun findMembershipStatus(age: Int, income: Double): String {
/**
 * This function determines the membership status of a social worker based on their age and income.
 *
 * @param age The age of the social worker.
 * @param income The annual income of the social worker.
 * @return The membership status of the social worker ('Full', 'Partial', or 'None').
 */
fun findMembershipStatus(age: Int, income: Double): String {

    // Determine membership status using nested if-else statements
    return when {
        age < 18 -> "None" // Underage workers are not eligible for membership
        income < 10000 -> "None" // Workers with income less than $10,000 are not eligible for membership
        age >= 60 && income >= 60000 -> "Full" // Workers aged 60 or above with income greater than or equal to $60,000 have full membership
        age >= 40 && income >= 40000 -> "Full" // Workers aged 40 or above with income greater than or equal to $40,000 have full membership
        else -> "Partial" // Workers who do not meet the above criteria have partial membership
    }
}