A CGPA calculator for Kerala University Btech(2008 Scheme)


This C program calculate the CGPA if the GPAs of each semseter is Entered. Compile and run this program. This caclculator is based on Jerala University Btech 2008 scheme. This program was done for pure fun, I had a php version but as I formated my system lost it.

/** By Vineeth Kartha released under GPL**/
#include<stdio.h>
int main()
{
  float gpa[8],cgpa=0,intgpa=0;
  int crd12=58,crd=29,crdtot=0;;
  int sem;
  int i;
  printf("Enter number of semsters till which CGPA is to be calculated :  ");
  scanf("%d",&sem);
  if(sem==1)
    {
      sem=2;
    }
  while(sem<1||sem>8)
    {
      printf("Please Enter valid number of  semesters(1-8)");
      scanf("%d",&sem);
    }
  for(i=2;i<=sem;i++)
    {
      if(i==2)
    {
      printf("Enter the GPA of S12:  ");
      scanf("%f",&gpa[0]);
      gpa[1]=0;//since S12 mark is taken twice.
      gpa[0]=gpa[0]*crd12;
      gpa[1]=gpa[1]*crd12;
      crdtot=crd12;
      intgpa=gpa[0]+gpa[1];
    }
      else
    {
      printf("Enter the GPA of S%d:  ",i);
      scanf("%f",&gpa[i-1]);
      gpa[i-1]=gpa[i-1]*crd;
      crdtot+=crd;
      intgpa+=gpa[i-1];
    }
    }
  cgpa=intgpa/crdtot;
  printf("\n The CGPA till Semster %d is   %0.2f\n",sem,cgpa);
  return 0;
}
Advertisements

About vineethkartha

Hi, I am Vineeth Kartha, I hold a Masters degree in Embedded Systems from BITS Pilani, Goa Campus. I currently work as a Software Developer. I am A free software promoter and electronics hobbyist. In my free time I do a little bit of birding and Wildlife photography. I love travelling, reading and blogging.

Posted on September 7, 2011, in Technical and tagged , , . Bookmark the permalink. 9 Comments.

  1. program have some error please use getch and clear screen (clrscr)

    • Dear Rahul
      This program was tested in ubuntu and was compiled with gcc, as such it had no problem and even now I have checked it and it is still showing the output.

  2. i have secured 7.52 and 6.88 in 3rd and 4th semester and 7.22 and 7.28 in 5th and 6th semester in B TECH, CET keala university . what is my % in 2nd and 3rd year. i want the answer immediately, as i have to apply for some exams

    • the above rogram is based on the formula CGPA=( sum(credits for a semester * gpa of that semester)/total credits of all semsters)

      In your case CGPA=(credit of 3rd sem * 7.52 + credit of 4th sem * 6.88)/(credit of 3rd sem + crtedit of 4th sem)

      this CGPA *100 should give the % for 2nd year similarly for 3rd year. Its good to confirm with the university.

  3. i hav secured 7.34 cgpa for btech ,kerala university.what would be my percentage

  4. sreeprasad.k.v

    Dear Vineeth, can you please advise me about my percentage since am having a CGPA of 62.5 ( btech 2004 scheme). please its urgent.

  5. HI I WILL LIST MY GPA ‘S FOR MY SEMESTERS CAN U PLEASE CALCULATE MY CGPA FOR KERALA UNIVERSITY 2008 SCHEME MECHANICAL IM IN A HURRY FOR AN EXAM REGISTRATION WOULD U HELP ME PLEASE
    1&2-6.62
    3-6.47
    4-6.88
    5-7.86
    6-7.05
    7-7.22
    8-7.14
    PLZ CAN U BE QUICK IM IN A HURRY

  6. vinayachandran

    Dear Sir
    Pl help to arrive percentage-BTech Kerala University.CGPA-7.75

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: