/**
 * This function calculates the blood volume in milliliters (ml) for a veterinarian
 * given the weight of a patient in kilograms and heart rate in beats per minute.
 *
 * Blood volume is calculated using the formula: blood_volume = weight * (heart_rate / 2) + 1.
 *
 * @param weight The weight of the patient in kilograms.
 * @param heartRate The heart rate of the patient in beats per minute.
 * @return The calculated blood volume in milliliters (ml).
 */
fun calculateBloodVolume(weight: Double, heartRate: Int): Double {

    val bloodVolume = weight * (heartRate / 2.0) + 1
    return bloodVolume
}
/**
 * This function calculates the blood volume in milliliters (ml) for a veterinarian
 * given the weight of a patient in kilograms and heart rate in beats per minute.
 *
 * Blood volume is calculated using the formula: blood_volume = weight * (heart_rate / 2) + 1.
 *
 * @param weight The weight of the patient in kilograms.
 * @param heartRate The heart rate of the patient in beats per minute.
 * @return The calculated blood volume in milliliters (ml).
 */
fun calculateBloodVolume(weight: Double, heartRate: Int): Double {
/**
 * This function calculates the blood volume in milliliters (ml) for a veterinarian
 * given the weight of a patient in kilograms and heart rate in beats per minute.
 *
 * Blood volume is calculated using the formula: blood_volume = weight * (heart_rate / 2) + 1.
 *
 * @param weight The weight of the patient in kilograms.
 * @param heartRate The heart rate of the patient in beats per minute.
 * @return The calculated blood volume in milliliters (ml).
 */
fun calculateBloodVolume(weight: Double, heartRate: Int): Double {

    val bloodVolume = weight * (heartRate / 2.0) + 1
    return bloodVolume
}