You are on page 1of 2

# /*

## NAME:: DHRUV H RATHOD

ROLL No:: 57 ICA A
Program:: ACCEPT THE FOLLOWING DATA::
Student Code,Batch Code,Location,Marks in test1,Marks in test2
Marks in External Exam.Calculate his grade as follows:
Total Marks=(Marks in External Exam *60/100)+((Test1+Test2)/2 * 40/100)
>90 OUTSTANDING
>80 & <91 EXCELLENT
>70 & <81 vERY gOOD
>60 & <71 gOOD
>=50 & <61 aVERAGE
<50 fAILED
*/

#include<stdio.h>
#include<conio.h>
void main()
{
int std_cd,bat_cd,m1,m2,me,tot;
char loc;
clrscr();
printf("\n Enter The Student Code : ");
scanf("%d",&std_cd);
printf("\n Enter The Batch Code : ");
scanf("%d",&bat_cd);
printf("\n Enter The Location : ");
scanf("%s",&loc);
printf("\n Enter The Marks in Test 1 : ");
scanf("%d",&m1);
printf("\n Enter The Marks in Test 2 : ");
scanf("%d",&m2);
printf("\n Enter The Marks in External Exam : ");
scanf("%d",&me);
tot=(((me*60)/100)+((((m1+m2)/2)*40)/100));
if(tot>90)

else if(tot>80 && tot<91)
else if(tot>70 && tot<81)
else if(tot>60 && tot<71)
else if(tot>=50 && tot<61)
else if(tot<50)

## printf("\n \n \t \tTotal Marks:%f Your Are Failed",tot);

getch();
}
/*
Input:
Enter The Student Code : 101

## Enter The Batch Code : 1

Enter The Location : Paldi

Output: