/**
 * The veterinarian wants to keep track of the number of visits per week for the given number of weeks.
 * Implement the 'numberOfVisits' function to count the total number of visits to the veterinarian for each week
 * and return the list containing the number of visits for each week.
 *
 * @param vetName Name of the veterinarian.
 * @param numberOfWeeks Number of weeks to count the visits.
 * @return A list containing the number of visits for each week.
 */
fun numberOfVisits(vetName: String, numberOfWeeks: Int): List<Int> {

    val weeklyVisits = mutableListOf<Int>()
    
    for (week in 1..numberOfWeeks) {
        print("Enter the number of visits in week $week: ")
        val visits = readLine()!!.toInt()
        weeklyVisits.add(visits)
    }
    
    return weeklyVisits
}
/**
 * The veterinarian wants to keep track of the number of visits per week for the given number of weeks.
 * Implement the 'numberOfVisits' function to count the total number of visits to the veterinarian for each week
 * and return the list containing the number of visits for each week.
 *
 * @param vetName Name of the veterinarian.
 * @param numberOfWeeks Number of weeks to count the visits.
 * @return A list containing the number of visits for each week.
 */
fun numberOfVisits(vetName: String, numberOfWeeks: Int): List<Int> {
/**
 * The veterinarian wants to keep track of the number of visits per week for the given number of weeks.
 * Implement the 'numberOfVisits' function to count the total number of visits to the veterinarian for each week
 * and return the list containing the number of visits for each week.
 *
 * @param vetName Name of the veterinarian.
 * @param numberOfWeeks Number of weeks to count the visits.
 * @return A list containing the number of visits for each week.
 */
fun numberOfVisits(vetName: String, numberOfWeeks: Int): List<Int> {

    val weeklyVisits = mutableListOf<Int>()
    
    for (week in 1..numberOfWeeks) {
        print("Enter the number of visits in week $week: ")
        val visits = readLine()!!.toInt()
        weeklyVisits.add(visits)
    }
    
    return weeklyVisits
}