Page 1 of 1

Implement the design of the Student class so that the following output is produced: Assume the credit for each course to

Posted: Fri Jul 08, 2022 6:38 am
by answerhappygod
Implement the design of the Student class so that the followingoutput is produced:Assume the credit for each course to be 3. For example: [3.3,4] canbe calculated as:CGPA = ((3.3 * 3) + (4 * 3)) / 6[Here, for each course, the grade point is multiplied by 3. Totalcredit is the number ofcourses multiplied by 3. Since the example has 2 courses, thereforea total of 6 credits]CGPA = sum of individual (grade point * credit) / totalcreditAcademic Standing Rule: [CGPA>3.80 Highest Distinction,CGPA>3.65 HighDistinction, CGPA>3.50 Distinction, CGPA>2.00 Satisfactory,CGPA<2.00 Can’tGraduate]
# Write your code heres1 = Student('Dora', '15995599','CSE', [4,3.7,3.7,4])s1.calculate_CGPA()print("==========================")s1.print_details()print("==========================")s2 = Student('Pingu', '12312322', 'EEE', [1.7,1.3,1.3,1.3,1])s2.calculate_CGPA()print("==========================")s2.print_details()print("==========================")s3 = Student('Bob', '13311331', 'CSE', [2,3,3,3.7,2.7,2.7])s3.calculate_CGPA()print("==========================")s3.print_details()