Write three classes: The first class will be the parent class. It should consist
ID: 3624838 • Letter: W
Question
Write three classes: The first class will be the parent class. It should consist of information for a person-Name, Address, phone Number and Date of Birth.The second class will be a child of the of the parent class. It should consist of information for a teacher-subject Taught, Office Number and Hire Date. The Third class will be a child of the parent class.It should consist of information for a student -Grade Level, Locker Number, Credits Earnd and Total Points (based on a 4.0 scale).It will also need a main program in order to test these classes.The main program should test all methods.Points to note:
a) Need costructor for each class, the constructor for the child should call the constructor for the parent.
b) Almost every variable will neeed an accessor.Exceptions would be Credits Earned and Total points.
c) Some variables will need mutators. Exceptions would be Name, Date of Birth, Hire Date.These should be passed in when the object is instantiated.The other variables would receive their values through the mutator methods.
d) There should be a method to calculate and display the student 's GPA-Total Points/Credits Earned.
e) There should be __str__methods for each class
Language to be use: Python.
Explanation / Answer
Hello! Could you please give me the points? I really need them... please? :(
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.