GeoNews

11 Mar 2013

GPA Calculator University Of Swat By: Ali Shah


This is coding for GPA Calculator in C Language
You can compile this in IDE, Download IDE from HERE








Coding:
____________________________________________


#include<stdio.h>
#include<conio.h>
void main()
{
int i,sub,marks,totalmarks=0;
float gpa,totalgpa=0.0;
clrscr();
printf("\n\t\t***THE UNIVERSITY OF SWAT***\n");

printf("\t\t============================\n\n");
printf("\t\t  ***Calculate Ur GPA***\n");
printf("\t\t____________________________\n");
printf("\n\t\tEnter no. of Subjects:");
scanf("%d",&sub);
printf("\t\t____________________________\n");
for(i=1;i<=sub;i=i+1)
    {
     printf("\n\n\t\tEnter marks of sub%d:",i);
     scanf("%d",&marks);

     if(marks>100||marks<0)
printf("\n\t\tInvalid Marks");
     if(marks>=85&&marks<=100)
gpa=4.0;
     if(marks==84)
gpa=3.9;
     if(marks==83)
gpa=3.8;
     if(marks==82)
gpa=3.7;
     if(marks==81)
gpa=3.6;
     if(marks==80)
gpa=3.5;
     if(marks==79||marks==78)
gpa=3.4;
     if(marks==77||marks==76)
gpa=3.3;
     if(marks==75||marks==74)
gpa=3.2;
     if(marks==73)
gpa=3.1;
     if(marks==72)
gpa=3.0;
     if(marks==71)
gpa=2.9;
     if(marks==70)
gpa=2.8;
     if(marks==69)
gpa=2.7;
     if(marks==68)
gpa=2.6;
     if(marks==67||marks==66)
gpa=2.5;
     if(marks==65||marks==64)
gpa=2.4;
     if(marks==63)
gpa=2.3;
     if(marks==62)
gpa=2.2;
     if(marks==61)
gpa=2.1;
     if(marks==60)
gpa=2.0;
     if(marks==59)
gpa=1.9;
     if(marks==58)
gpa=1.8;
     if(marks==57)
gpa=1.7;
     if(marks==56)
gpa=1.6;
     if(marks==55)
gpa=1.5;
     if(marks==54)
gpa=1.4;
     if(marks==53)
gpa=1.3;
     if(marks==52)
gpa=1.2;
     if(marks==51)
gpa=1.1;
     if(marks==50)
gpa=1.0;
     if(marks<=49&&marks>=0)
gpa=0.0;
     totalmarks=totalmarks+marks;
     totalgpa=totalgpa+gpa;
     }
totalgpa=totalgpa/sub;
printf("\n\t\t____________________________\n");
printf("\n\t\tTotal Marks Obtained    %d",totalmarks);
printf("\n\t\t____________________________\n");
printf("\n\t\tGPA                %f",totalgpa);
printf("\n\t\t============================\n");
printf("\n\n\t\t      ***Thank You***");
printf("\n\t\t____________________________\n");
printf("\n\t\tPREPARED BY: ALI SHAH BS(CS)");
printf("\n\t\t____________________________\n");
getch();
}

____________________________________________
For Downloading the .EXE file:
(Size: 30.59KB)
Download HERE
OR
Download HERE

Ali Shah is Student of BS-Computer Science in 4th Semester, in University Of Swat
You can contact him here:
a_shah2000@yahoo.com





4 comments:

  1. Hi, i made an android app for calculating GPA of swat UNI, i am a student of Computer Science in Daggar college, Buner.
    App is live in playstore you can find it at:https://play.google.com/store/apps/details?id=com.lucidsoftware.gpacalculator

    ReplyDelete
    Replies
    1. Swat University Students: Gpa Calculator University Of Swat By: Ali Shah >>>>> Download Now

      >>>>> Download Full

      Swat University Students: Gpa Calculator University Of Swat By: Ali Shah >>>>> Download LINK

      >>>>> Download Now

      Swat University Students: Gpa Calculator University Of Swat By: Ali Shah >>>>> Download Full

      >>>>> Download LINK 3c

      Delete
  2. Swat University Students: Gpa Calculator University Of Swat By: Ali Shah >>>>> Download Now

    >>>>> Download Full

    Swat University Students: Gpa Calculator University Of Swat By: Ali Shah >>>>> Download LINK

    >>>>> Download Now

    Swat University Students: Gpa Calculator University Of Swat By: Ali Shah >>>>> Download Full

    >>>>> Download LINK ck

    ReplyDelete