Question: Using Rstudio: R problem Create an S3 class studentRecord for objects that are a list with the named elements name, subjects completed, grades, and credit.
Using Rstudio:
R problem
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 which, when applied to a cohort, apply mean or print to each student in the cohort.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
