Registration Running on Online Classes for AMIE Summer 2018 Click Here to Register

## AMIE Grade and Percentage calculator_C programme

Welcome to AMIE NBCAFE STUDENT FORUM. It is the platform of all AMIE Students.

### AMIE Grade and Percentage calculator_C programme

/*AMIE PERCENTAGE & GRADE POINT AVERAGE CALCULATOR*/

#include <stdio.h>
void main ()
{
int h, a, b, c, d, noofsubjects;
int hp, ap, bp, cp, dp;

hp=100;
ap=74;
bp=65;
cp=59;
dp=49;
int hg, ag, bg, cg, dg;
hg=10;
ag=9;
bg=8;
cg=6;
dg=5;

/*FOLLOWING CODE WILL TAKE INPUT FROM USER*/

printf("NUMBER OF SUBJECTS SCORED GRADE H : ");
scanf("%d", &h);
printf("NUMBER OF SUBJECTS SCORED GRADE A : ");
scanf("%d", &a);
printf("NUMBER OF SUBJECTS SCORED GRADE B : ");
scanf("%d", &b);
printf("NUMBER OF SUBJECTS SCORED GRADE C : ");
scanf("%d", &c);
printf("NUMBER OF SUBJECTS SCORED GRADE D : ");
scanf("%d", &d);
noofsubjects = h+a+b+c+d;
/*TOTAL GRADE IS = (h*100 + A*74 + B*65 + c*59 + d*49) */
totalgpa=((h*hg)+(a*ag)+(b*bg)+(c*cg)+(d*dg));
gpa=totalgpa/noofsubjects;

/*FOLLOWING CODE WILL TAKE INPUT FROM US OUTPUT THE DETAILS*/
printf("\n NUMBER OF SUBJECTS COUNTED: %d\n", noofsubjects);
printf("\n TOTAL MARKS IN PERCENTAGE IS : %.2f\n", percentage);
printf("\n GRADE POINT AVERAGE IS : %.2f\n", gpa);
getch();
}

Screen Shot
GPA_C.jpg

RULES FOR GPA CALCULATIONS

GPA CALCULATIONS.jpg
You do not have the required permissions to view the files attached to this post.Please Register yourself to Download for register click on REGISTER
Last edited by RAVIGARU on Wed Jun 06, 2012 12:16 pm, edited 1 time in total.
RAVIGARU

Posts: 313
Joined: Sat May 05, 2012 9:47 pm

### Re: AMIE Grade and Percentage calculator_C programme

I have learned C Language from the following video tutorials

http://thenewboston.org/list.php?cat=14
RAVIGARU

Posts: 313
Joined: Sat May 05, 2012 9:47 pm

### Re: AMIE Grade and Percentage calculator_C programme

thank you RAVIGARU for such a valuable link.

"Don't expect things to happen
Struggle & make them happen"

Thanks & Regards
Abhijit
abhijit
Royal Guardian

Posts: 310
Joined: Sun Apr 29, 2012 8:55 pm
Location: kolkata

### Re: AMIE Grade and Percentage calculator_C programme

http://thenewboston.org
its a wonderful site for video tutorials of different subject related to computers
You Can get C, C++, Java (useful for Section B CSE) and some others
Really very nice Tutorials
RAVIGARU