/**
 * This function takes a list of pet health conditions as input and determines the diagnosis for the pets.
 *
 * @param petHealth A list containing the health conditions of multiple pets
 * @return A string representing the diagnosis for the pets
 */
fun diagnosePets(petHealth: List<Triple<Int, Int, Int>>): String {

    // Checking if the list is empty
    if (petHealth.isEmpty()) {
        return "No pets to diagnose."
    } else {
        // Looping through the petHealth list
        for (pet in petHealth) {
            // Nested if-else statements to determine the diagnosis based on the pet's health condition
            if (pet.first >= 103 && pet.second <= 40 && pet.third <= 80) {
                return "Pet has symptoms of a fever. Suggested diagnosis: Infection."
            } else if (pet.first >= 103 && pet.second > 40 && pet.third > 80) {
                return "Pet has symptoms of a fever. Suggested diagnosis: Heatstroke."
            } else if (pet.first < 103 && pet.second <= 40 && pet.third <= 80) {
                // Add more conditions as needed
            }
        }
    }
    return "No diagnosis found."
}
/**
 * This function takes a list of pet health conditions as input and determines the diagnosis for the pets.
 *
 * @param petHealth A list containing the health conditions of multiple pets
 * @return A string representing the diagnosis for the pets
 */
fun diagnosePets(petHealth: List<Triple<Int, Int, Int>>): String {
/**
 * This function takes a list of pet health conditions as input and determines the diagnosis for the pets.
 *
 * @param petHealth A list containing the health conditions of multiple pets
 * @return A string representing the diagnosis for the pets
 */
fun diagnosePets(petHealth: List<Triple<Int, Int, Int>>): String {

    // Checking if the list is empty
    if (petHealth.isEmpty()) {
        return "No pets to diagnose."
    } else {
        // Looping through the petHealth list
        for (pet in petHealth) {
            // Nested if-else statements to determine the diagnosis based on the pet's health condition
            if (pet.first >= 103 && pet.second <= 40 && pet.third <= 80) {
                return "Pet has symptoms of a fever. Suggested diagnosis: Infection."
            } else if (pet.first >= 103 && pet.second > 40 && pet.third > 80) {
                return "Pet has symptoms of a fever. Suggested diagnosis: Heatstroke."
            } else if (pet.first < 103 && pet.second <= 40 && pet.third <= 80) {
                // Add more conditions as needed
            }
        }
    }
    return "No diagnosis found."
}