13  Working with Classes

13.1 Task : Creating a Class

  • Use the package you created in the previous sessions.
  • Use the package locally (you don’t need to publish it to everyone)
  • Within this package, create a module named classes with the following within:
    • A class named Student.
    • A student might have properties like: name, age, classes he is attending, exam dates on all classes, grades for those classes and books needed for each class

13.2 Task : Creating an Object

  • Crerate a student with the following properties:
    • Name : Your name
    • Age : Your Age
    • Attending 3 classes : Prog. 4, Data Science, Networking
    • Exams Dates: Prog 4 is 21 June, Data Science is 20 June, Networking is 28 June
    • There are no grades yet
    • The blibliography is : For Prog 4 is book A.pdf and B.pdf, for Data Science is DS.pdf and there are no books for Networking

13.3 Task : Creating Methods

  • The student decided to quit from Networking.
  • The student decided to enter the Cloud Computing class.
  • The student has now the grade for Prog 4, it was 15.
  • The student has now the grade for Data Science, it was 18.
  • Print all the classes the student is attending.
  • Print all the grades the student has so far.