Skip to content

nathan-quick/classes3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

classes3

For a group classes assignment Student class

Create a class called Student that has an attribute (local class variable) for each CSV column value. Make the constructor (init) take the values as arguments and set them for the class. Make a print_headers() method to print a header for the columns Override the str method to print out the attributes in a nice looking way that matches the print_header() headers Make getter methods for all the attributes.

Students class

Create a second class called Students It should take a CSV filename in its init for a file like you are given for this project It should have an attribute which is a list of Students filled from the CSV file It should have a method to print a nicely formatted table (override the str method) of the contents of its list of students. This can use the Student methods to do this. It should have methods freshman, sophomore, junior, and senior that each return the IDs as a tuple of the students that match the requirements for each class standing as outlined in the current Union College Bulletin.

About

For a group classes assignment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages