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
- Enter grades in every subject.
- Apply in formula CGPA.
- Calculate CGPA percentage.
- Print the CGPA percentage.
Complexity
O(1)
CGPA percentage is = (float)(9.5 * (CGPA));
Input:
CGPA = (Grades in all Subjects) / (Total Number of Subjects).
English = 9.1;
Hindi = 8.5;
Maths = 9.5;
Science =9.6;
SocialStudy = 8.6;
CGPA = (9.1+8.5+9.5+9.6+8.6)/(5.0);
Output:
CGPA percentage is = 86.070000
Python
Output:
C
Output:
Java
Output:
C#
Output:
PHP
Output: