Python assignment three and fourThis Assignment is designed to take you through creatingclasses, aggregation, and manipulating arrays of objects.Scenario: A University likes to have a simple system to keeptrack of all the students (graduate and undergrads). You have tocreate a menu-driven program for the user to use the systemthrough the console. The following classes are needed for thisobject-ori
...[Show More]
Python assignment three and four
This Assignment is designed to take you through creating
classes, aggregation, and manipulating arrays of objects.
Scenario: A University likes to have a simple system to keep
track of all the students (graduate and undergrads). You have to
create a menu-driven program for the user to use the system
through the console. The following classes are needed for this
object-oriented database.
1) Create a class called Student that has the following stored
properties:
Student
- StudentID : Integer
- stdFirstName: String
- stdLastName: String
- stdMarks : Double []
- stdAddress: Address
** Class Student should have set/get properties for its private
parameters, constructor and have following methods:
Average() - that returns the average grade for students
__str__() method that returns the above information as a
String
*** student ID has to be self generated and increment for every
student you are adding
2) Create a class called Address which can be aggregated into the
class student (aggregation means use an object of one class as a
properties of other)
Address
- streetInfo: String
- city: String
- postalCode: String
- province: String
- country: String
- ** Class Student should have set/get properties for its
private parameters, constructor and have following methods:
__str__() method that returns the above information as a String
[Show Less]