There are 15 pupils in the Introduction to Programming I module. The age of every student is entered in years and months. Convert the age into months to calculate the average age. Display the answer (average age) in years and months on screen.

years+months = (years*12+m) months

To calculate the average age in months, you will need to convert each student's age from years and months to months. Then, you can sum up all the converted ages and divide it by the total number of students.

Let's break down the process step by step:

1. Start by calculating the age of each student in months. To do this, multiply the number of years by 12 and add the number of months.

2. Sum up all the ages (in months) of the 15 students.

3. Divide the total sum of ages by the number of students (15) to obtain the average age in months.

4. Finally, convert the average age back to years and months. To do this, divide the average age (in months) by 12 to get the number of years, and take the remainder to find the number of months left.

Here's an example calculation using a hypothetical scenario:

Student 1: 4 years and 6 months
Student 2: 3 years and 9 months
Student 3: 2 years and 11 months
...
Student 15: 5 years and 2 months

1. Calculate the age of each student in months:
Student 1: (4 * 12) + 6 = 48 + 6 = 54 months
Student 2: (3 * 12) + 9 = 36 + 9 = 45 months
Student 3: (2 * 12) + 11 = 24 + 11 = 35 months
...
Student 15: (5 * 12) + 2 = 60 + 2 = 62 months

2. Sum up all the ages:
54 + 45 + 35 + ... + 62 = total_sum_of_ages_in_months

3. Calculate the average age in months:
average_age_in_months = total_sum_of_ages_in_months / 15 (number of students)

4. Convert the average age back to years and months:
average_age_years = average_age_in_months / 12 (number of months in a year)
average_age_months = average_age_in_months % 12 (remainder of dividing by 12)

The final answer will be the average_age_years and average_age_months.