Home » Program to calculate the CGPA percentage

Program to calculate the CGPA percentage

by Online Tutorials Library

Program to calculate the CGPA percentage

Explanation

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

CGPA ( Cumulative Grade Point Average ) is the systematic arrangement in the educational stream to get average of grade points. And the CGPA percentage is 9.5 times the CGPA.

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

So, CGPA= 9.5 × CGPA

Formula

CGPA =  9.5 × CGPA  

Algorithm

  1. Enter grades in every subject.
  2. Apply in formula CGPA.
  3. Calculate CGPA percentage.
  4. Print the CGPA percentage.

Complexity

O(1)


Solution

Python

Output:

CGPA percentage is:   86.07000000001 

C

Output:

CGPA percentage is:  86.070000 

Java

Output:

CGPA Percentage is:  86.06 

C#

Output:

CGPA percentage is:  86.06 

PHP

Output:

CGPA percentage is =  86.07 

Next Topic#

You may also like