class Student: def __init__(self,name,hours,qpoints): self.name = name self.hours = float(hours) self.qpoints = float(qpoints) def getName(self): return self.name def getHours(self): return self.hours def getQPoints(self): return self.qpoints def getGPA(self): return self.qpoints / self.hours def makeStudent(line): """ creates an instance of class Student; line is a line from the file formatted as LastName, FirstName hours qpoints """ name, hours, qpoints = line.split(" ") return Student(name,hours,qpoints)