/**
 * This function calculates the total number of repetitions performed by a patient based on the number of sets, repetitions per set, and intensity level.
 *
 * @param sets Total number of sets performed by the patient.
 * @param reps Number of repetitions performed per set.
 * @param intensity Intensity level of the exercise (0.0 to 1.0).
 * @return Total number of repetitions performed by the patient.
 */
fun calculateTotalRepetitions(sets: Int, reps: Int, intensity: Float): Int {

    var totalRepetitions = sets * reps  // Calculate the initial total repetitions
    totalRepetitions = (totalRepetitions * intensity).toInt()  // Adjust the total repetitions based on intensity level

    return totalRepetitions
}
/**
 * This function calculates the total number of repetitions performed by a patient based on the number of sets, repetitions per set, and intensity level.
 *
 * @param sets Total number of sets performed by the patient.
 * @param reps Number of repetitions performed per set.
 * @param intensity Intensity level of the exercise (0.0 to 1.0).
 * @return Total number of repetitions performed by the patient.
 */
fun calculateTotalRepetitions(sets: Int, reps: Int, intensity: Float): Int {
/**
 * This function calculates the total number of repetitions performed by a patient based on the number of sets, repetitions per set, and intensity level.
 *
 * @param sets Total number of sets performed by the patient.
 * @param reps Number of repetitions performed per set.
 * @param intensity Intensity level of the exercise (0.0 to 1.0).
 * @return Total number of repetitions performed by the patient.
 */
fun calculateTotalRepetitions(sets: Int, reps: Int, intensity: Float): Int {

    var totalRepetitions = sets * reps  // Calculate the initial total repetitions
    totalRepetitions = (totalRepetitions * intensity).toInt()  // Adjust the total repetitions based on intensity level

    return totalRepetitions
}