| |
- builtins.object
-
- Student
class Student(builtins.object) |
|
Student(studID, name, coursework, exam)
Student class to represent each student object |
|
Methods defined here:
- __init__(self, studID, name, coursework, exam)
- constructor method
Parameters:
- studID: student ID
- name: name of student
- coursework: coursework mark
- exam: exam mark
- __str__(self)
- String representation of student object
- getCoursework(self)
- accessor method to get coursework mark
- getExam(self)
- accessor method to get exam mark
- getName(self)
- accessor method to get student name
- getStudID(self)
- accessor method to get student ID
- overall(self)
- service method to calculate overall mark from the weighted sum of the coursework mark and the the exam mark
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
Data and other attributes defined here:
- CWweight = 0.4
- EXweight = 0.6
- numStudent = 0
| |