/**
 * Determine the status of an engineer based on their years of experience and job title.
 *
 * @param yearsOfExperience An integer indicating the number of years of experience the engineer has.
 * @param jobTitle A string indicating the job title of the engineer.
 * @return A string indicating the status of the engineer.
 * The possible return values are:
 * - 'Experienced Senior Engineer' if the engineer has more than 10 years of experience and their job title is 'Senior Engineer'.
 * - 'Senior Engineer' if the engineer has more than 10 years of experience.
 * - 'Mid-Level Engineer' if the engineer has between 5 to 10 years of experience.
 * - 'Junior Engineer' if the engineer has less than 5 years of experience.
 * - 'Unknown' if the engineer's job title is not one of the specified options.
 */
fun checkEngineerStatus(yearsOfExperience: Int, jobTitle: String): String {

    return when {
        yearsOfExperience > 10 -> {
            if (jobTitle == "Senior Engineer") {
                "Experienced Senior Engineer"
            } else {
                "Senior Engineer"
            }
        }
        yearsOfExperience in 5..10 -> "Mid-Level Engineer"
        yearsOfExperience < 5 -> "Junior Engineer"
        else -> "Unknown"
    }
}
/**
 * Determine the status of an engineer based on their years of experience and job title.
 *
 * @param yearsOfExperience An integer indicating the number of years of experience the engineer has.
 * @param jobTitle A string indicating the job title of the engineer.
 * @return A string indicating the status of the engineer.
 * The possible return values are:
 * - 'Experienced Senior Engineer' if the engineer has more than 10 years of experience and their job title is 'Senior Engineer'.
 * - 'Senior Engineer' if the engineer has more than 10 years of experience.
 * - 'Mid-Level Engineer' if the engineer has between 5 to 10 years of experience.
 * - 'Junior Engineer' if the engineer has less than 5 years of experience.
 * - 'Unknown' if the engineer's job title is not one of the specified options.
 */
fun checkEngineerStatus(yearsOfExperience: Int, jobTitle: String): String {
/**
 * Determine the status of an engineer based on their years of experience and job title.
 *
 * @param yearsOfExperience An integer indicating the number of years of experience the engineer has.
 * @param jobTitle A string indicating the job title of the engineer.
 * @return A string indicating the status of the engineer.
 * The possible return values are:
 * - 'Experienced Senior Engineer' if the engineer has more than 10 years of experience and their job title is 'Senior Engineer'.
 * - 'Senior Engineer' if the engineer has more than 10 years of experience.
 * - 'Mid-Level Engineer' if the engineer has between 5 to 10 years of experience.
 * - 'Junior Engineer' if the engineer has less than 5 years of experience.
 * - 'Unknown' if the engineer's job title is not one of the specified options.
 */
fun checkEngineerStatus(yearsOfExperience: Int, jobTitle: String): String {

    return when {
        yearsOfExperience > 10 -> {
            if (jobTitle == "Senior Engineer") {
                "Experienced Senior Engineer"
            } else {
                "Senior Engineer"
            }
        }
        yearsOfExperience in 5..10 -> "Mid-Level Engineer"
        yearsOfExperience < 5 -> "Junior Engineer"
        else -> "Unknown"
    }
}