0
931views
Write a python program to implement a Student class that has a method to calculate CGPA. Assume suitable class variables.
1 Answer
1
133views

Solution:

In this program, we have to calculate the CGPA percentage of five subjects( English, Hindi, Math, Science, and Social Studies).

CGPA is the systematic arrangement in the educational stream to get an average of grade points. And the CGPA percentage is 9.5 times the CGPA.

CGPA = (Grades in all Subjects) / (Total Number of Subjects).

Program Algorithm:

  1. Enter grades in every subject.

  2. Apply in formula CGPA.

  3. Calculate CGPA percentage.

  4. Print the CGPA percentage.

enter image description here

Output:

enter image description here

Please log in to add an answer.