Filtering Objects

Create a Student class with the following UML:

Student UML

Create a function that will take a list of Student objects and an int value for a grade. The function will return a sub-list of all Student objects in that grade.

Please be sure to:

  • Annotate this function and provide a doc-string.

  • Create a proper constructor (init method) for this class.

In a main function, write code that proves the function works both for found and not found student ids.


©2021 Daniel Gallo

This work is licensed under Attribution-NonCommercial-ShareAlike 4.0 International