/**
 * This function calculates the dosage of medication for a veterinarian based on the weight, age, and whether the animal is a stray or not.
 */
fun calculateDosage(weight: Float, age: Int, isStray: Boolean): Float {

    var ratio = 0.0f

    // Use the "is" operator to check if the animal is a stray
    if (isStray) {
        ratio += 0.2f  // Increase the ratio by 0.2 if the animal is a stray
    }

    // Use the left shift operator to shift the age by 2 bits to the left
    val ageShifted = age shl 2

    // Use the right shift operator to shift the weight by 3 bits to the right
    val weightShifted = weight.toInt() shr 3

    val dosage = (weightShifted * ratio) + ageShifted

    return dosage
}
/**
 * This function calculates the dosage of medication for a veterinarian based on the weight, age, and whether the animal is a stray or not.
 */
fun calculateDosage(weight: Float, age: Int, isStray: Boolean): Float {
/**
 * This function calculates the dosage of medication for a veterinarian based on the weight, age, and whether the animal is a stray or not.
 */
fun calculateDosage(weight: Float, age: Int, isStray: Boolean): Float {

    var ratio = 0.0f

    // Use the "is" operator to check if the animal is a stray
    if (isStray) {
        ratio += 0.2f  // Increase the ratio by 0.2 if the animal is a stray
    }

    // Use the left shift operator to shift the age by 2 bits to the left
    val ageShifted = age shl 2

    // Use the right shift operator to shift the weight by 3 bits to the right
    val weightShifted = weight.toInt() shr 3

    val dosage = (weightShifted * ratio) + ageShifted

    return dosage
}