R problem
1. Student records. Create an S3 class studentRecord for objects
that are a list with the named elements ‘name’, ‘subjects
completed’, ‘grades’, and ‘credit’. Write a studentRecord method
for the generic function mean, which returns a weighted GPA, with
subjects weighted by credit. Also write a studentRecord method for
print, which employs some nice formatting, perhaps arranging
subjects by year code.
Finally create a further class for a cohort of students, and
write methods for mean and print...