[Solved]Task 1 Course Course Represents Specific Course Record Appeared Transcript Class Course De Q37295820
PYTHON PROGRAMMING

Task 1 – Course A Course represents a specific course record as those appeared on your transcript. class Course: Define the Course class. def-init-(self, number, credit, grade) : Course constructor. All three parameters must be stored to instance variables of the same names (number, credit, and grade) o numberstr. Represents course number, like “CS112” or “MATH113″ credit :: int. Represents credit hours. You can assume it will always be a positive integer o grade str. Represents letter grade. Can only be ‘A,’B’, ‘C’,’D,’F’, or ‘IP” If the provided grade is not one of these (for example, grade”K”), then raise a CourseError with the message “bad grade ‘K” (You can skip this exception-raising part until later) def credit -4, and grade-“A”, then the returned string must be “CS112: credit 4, grade A” (note the four single spaces) def eq (self,other): we want to check that two courses are equal (our self and this other course). The number, credit, and grade of each course must be the same for the courses to be considered equal. -str-(self) : returns a human-centric string representation. Ifnumber=”CS112″, . def is passing(self): checks whether this course has passed or not according to grade. Return False if the grade is ‘F’ or ‘IP; return True otherwise Show transcribed image text Task 1 – Course A Course represents a specific course record as those appeared on your transcript. class Course: Define the Course class. def-init-(self, number, credit, grade) : Course constructor. All three parameters must be stored to instance variables of the same names (number, credit, and grade) o numberstr. Represents course number, like “CS112” or “MATH113″ credit :: int. Represents credit hours. You can assume it will always be a positive integer o grade str. Represents letter grade. Can only be ‘A,’B’, ‘C’,’D,’F’, or ‘IP” If the provided grade is not one of these (for example, grade”K”), then raise a CourseError with the message “bad grade ‘K” (You can skip this exception-raising part until later) def credit -4, and grade-“A”, then the returned string must be “CS112: credit 4, grade A” (note the four single spaces) def eq (self,other): we want to check that two courses are equal (our self and this other course). The number, credit, and grade of each course must be the same for the courses to be considered equal. -str-(self) : returns a human-centric string representation. Ifnumber=”CS112″, . def is passing(self): checks whether this course has passed or not according to grade. Return False if the grade is ‘F’ or ‘IP; return True otherwise
Expert Answer
Answer to Task 1 – Course A Course represents a specific course record as those appeared on your transcript. class Course: Define … . . .
OR

