/**
 * This function determines which exercise is suitable for a physical therapist based on the physical condition and age of the patient.
 *
 * @param physicalCondition The physical condition of the patient. Can be "Injured", "Frail", or "Athletic".
 * @param age The age of the patient in years.
 * @return The recommended exercise for the patient based on their physical condition and age.
 */
fun determineExercise(physicalCondition: String, age: Int): String {

    return when (physicalCondition) {
        "Injured" -> {
            if (age < 30) {
                "Low-impact exercises, such as swimming or cycling, would be ideal for rehabilitation purposes."
            } else {
                "Focus on gentle stretching and mobility exercises, avoiding any high-impact activities."
            }
        }
        "Frail" -> {
            if (age < 50) {
                "Stick to chair-based exercises, focusing on gentle strength and balance training."
            } else {
                "Engage in light cardio exercises, such as walking or gentle dancing, to improve overall fitness and coordination."
            }
        }
        "Athletic" -> {
            if (age < 40) {
                "Continue with your regular exercise routine, but ensure adequate warm-up and"
            } else {
                // Add the appropriate recommendation for athletic patients above the age of 40
                "Add recommendation for athletic patients above the age of 40 here."
            }
        }
        else -> "No specific exercise recommendation for this physical condition."
    }
}
/**
 * This function determines which exercise is suitable for a physical therapist based on the physical condition and age of the patient.
 *
 * @param physicalCondition The physical condition of the patient. Can be "Injured", "Frail", or "Athletic".
 * @param age The age of the patient in years.
 * @return The recommended exercise for the patient based on their physical condition and age.
 */
fun determineExercise(physicalCondition: String, age: Int): String {
/**
 * This function determines which exercise is suitable for a physical therapist based on the physical condition and age of the patient.
 *
 * @param physicalCondition The physical condition of the patient. Can be "Injured", "Frail", or "Athletic".
 * @param age The age of the patient in years.
 * @return The recommended exercise for the patient based on their physical condition and age.
 */
fun determineExercise(physicalCondition: String, age: Int): String {

    return when (physicalCondition) {
        "Injured" -> {
            if (age < 30) {
                "Low-impact exercises, such as swimming or cycling, would be ideal for rehabilitation purposes."
            } else {
                "Focus on gentle stretching and mobility exercises, avoiding any high-impact activities."
            }
        }
        "Frail" -> {
            if (age < 50) {
                "Stick to chair-based exercises, focusing on gentle strength and balance training."
            } else {
                "Engage in light cardio exercises, such as walking or gentle dancing, to improve overall fitness and coordination."
            }
        }
        "Athletic" -> {
            if (age < 40) {
                "Continue with your regular exercise routine, but ensure adequate warm-up and"
            } else {
                // Add the appropriate recommendation for athletic patients above the age of 40
                "Add recommendation for athletic patients above the age of 40 here."
            }
        }
        else -> "No specific exercise recommendation for this physical condition."
    }
}