/**
 * This exercise is designed for a physical therapist to practice calculating the range of motion (ROM) for a patient.
 * The function takes in a list of angle data and a target angle. It calculates the range of motion by counting the number
 * of angles that are greater than or equal to the target angle.
 *
 * @param angleData A list of angles (in degrees) recorded for a patient.
 * @param targetAngle The target angle that the patient needs to achieve.
 * @return The range of motion (ROM) which represents the count of angles that are greater than or equal to the target angle.
 */
fun calculateRangeOfMotion(angleData: List<Double>, targetAngle: Double): Int {

    var rangeOfMotion = 0

    for (angle in angleData) {
        if (angle < targetAngle) {
            continue
        }

        rangeOfMotion++
    }

    return rangeOfMotion
}
/**
 * This exercise is designed for a physical therapist to practice calculating the range of motion (ROM) for a patient.
 * The function takes in a list of angle data and a target angle. It calculates the range of motion by counting the number
 * of angles that are greater than or equal to the target angle.
 *
 * @param angleData A list of angles (in degrees) recorded for a patient.
 * @param targetAngle The target angle that the patient needs to achieve.
 * @return The range of motion (ROM) which represents the count of angles that are greater than or equal to the target angle.
 */
fun calculateRangeOfMotion(angleData: List<Double>, targetAngle: Double): Int {
/**
 * This exercise is designed for a physical therapist to practice calculating the range of motion (ROM) for a patient.
 * The function takes in a list of angle data and a target angle. It calculates the range of motion by counting the number
 * of angles that are greater than or equal to the target angle.
 *
 * @param angleData A list of angles (in degrees) recorded for a patient.
 * @param targetAngle The target angle that the patient needs to achieve.
 * @return The range of motion (ROM) which represents the count of angles that are greater than or equal to the target angle.
 */
fun calculateRangeOfMotion(angleData: List<Double>, targetAngle: Double): Int {

    var rangeOfMotion = 0

    for (angle in angleData) {
        if (angle < targetAngle) {
            continue
        }

        rangeOfMotion++
    }

    return rangeOfMotion
}