Basic program to calculate a year average in a class when exams are factored in