1) Create a class for Student¶
attributes to include: name, age, school, major, gpa, class year
optional challenge: create a class for Person that a student inherits (hint: what attributes do a person and student share? which are not necessary to describe a person?)
2) Add a string function that includes any interesting attributes.¶
Example: "Hi, I'm Lexi and I am 23 years old"
3) Add a function to compute years until graduation. Feel free to assume a maximum number of years until graduation even though it is not always true for graduate students.¶
4) Create a list of students.¶
5) Iterate over the list using a for loop and print name, school, gpa and any other attributes you find interesting¶
6) Compute the average gpa for all of the students using a for loop¶
7) Using the matplotlib class, make a scatter plot of year vs gpa.¶
8) Using the matplotlib class, add labels to both axes.¶