/**
 * This function simulates a veterinarian administering treatment to a patient.
 * The veterinarian uses nested if-else statements to determine the appropriate treatment
 * based on the patient's condition.
 */
fun treatPatient(name: String, injuredLeg: Boolean, temperature: Double) {

    // Check if the patient has an injured leg
    if (injuredLeg) {
        // Complete the nested if-else statements
        if (temperature > 40) {
            println("$name has an injured leg and a high temperature!")
            println("Administer painkillers and antibiotics.")
        } else {
            println("$name has an injured leg but a normal temperature.")
            println("Provide pain relief and immobilize the leg.")
        }
    } else {
        // Complete the nested if-else statements
        if (temperature > 40) {
            println("$name does not have an injured leg but has a high temperature!")
            println("Administer antibiotics and monitor closely.")
        } else {
            println("$name does not have an injured leg and has a normal temperature.")
            println("Provide routine check-up and vaccinations.")
        }
    }
}
/**
 * This function simulates a veterinarian administering treatment to a patient.
 * The veterinarian uses nested if-else statements to determine the appropriate treatment
 * based on the patient's condition.
 */
fun treatPatient(name: String, injuredLeg: Boolean, temperature: Double) {
/**
 * This function simulates a veterinarian administering treatment to a patient.
 * The veterinarian uses nested if-else statements to determine the appropriate treatment
 * based on the patient's condition.
 */
fun treatPatient(name: String, injuredLeg: Boolean, temperature: Double) {

    // Check if the patient has an injured leg
    if (injuredLeg) {
        // Complete the nested if-else statements
        if (temperature > 40) {
            println("$name has an injured leg and a high temperature!")
            println("Administer painkillers and antibiotics.")
        } else {
            println("$name has an injured leg but a normal temperature.")
            println("Provide pain relief and immobilize the leg.")
        }
    } else {
        // Complete the nested if-else statements
        if (temperature > 40) {
            println("$name does not have an injured leg but has a high temperature!")
            println("Administer antibiotics and monitor closely.")
        } else {
            println("$name does not have an injured leg and has a normal temperature.")
            println("Provide routine check-up and vaccinations.")
        }
    }
}