COMPUTER PROJECT
STUDENTS INFORMATION SYSTEM
SUBMITTED BY Name : KURIAN THOMAS Class :
XI
B
Roll : 12217 Sch : KENDRIYA VDYALAYA
CERTIFICATE
This is to certify that the project was done by
KURIAN
THOMAS Roll.
No
12217 Is in partial fulfillment of Computer Practical Examinations AISSCE
2011. I certify that this project is done by him/ her with his/her own effort with guidance of the teacher.
Teacher in charge --------------------
Examiner ------------------
Head of the institute ------------------------
Acknowledgement It would be my utmost pleasure to express my sincere thanks to My Computer Teacher Suni Abraham in providing a helping hand in this project . Their valuable guidance, support and supervision all through this project titled ´Student Examination Management Systemµ, are responsible for attaining its present form.
Contents 1. Introduction 2. Requir ements 3. Source code 4. Output 5. Conclusion 6. Bibliography
Introduction
Requirements
Source code #include #include #include #include #include< bios.h> #include #include #include #include #include
int menu(int,int,int,char a[25],char b[25],char c[25],char d[25],char e[25],char
sl1[25],char sl2[25],char title[40],char under[2]);
void main_ menu(); void student_ menu(); void mark_ menu();
int r ecords=0;
struct s_date { int dd,mm,yyyy; };
//DEFINING OF Stuctur es struct student { char addr ess[30]; char f name[30]; int r edgno; s_date dob; char clas[5]; char name[20]; int sub1,sub2,sub3,sub4,sub5,total; f loat avg,pr e; char div[10]; char st_code[10]; }s[10];
void message(int x,int y,int lines,char a[50],char b[50],char c[50],
char d[50],char e[50],char f [10],int back) { int l,i,j; char f1[10];
l=strlen(a); if (l>t_r edg; s[i].r edgno=t_r edg; cout<<"Enter the Register no:" gotoxy(20,10); cout<<" Name:";gotoxy(35,10);gets(s[i].name); gotoxy(20,12); cout<<"Addr ess:";gotoxy(35,12);gets(s[i].addr ess); gotoxy(20,14); cout<<"Father's Name:";gotoxy(35,14);gets(s[i].f name); gotoxy(20,16); cout<<"Class:";gotoxy(35,16);gets(s[i].clas); gotoxy(20,18); cout<<"Date Of Birth :DD MM YYYY";gotoxy(35,18); cin>>s[i].dob.dd>>s[i].dob.mm>>s[i].dob.yyyy;
sa: clrscr();
gotoxy(20,2); cout<<"Student Data Entry For m"; gotoxy(20,3); cout<<"------------------------"; gotoxy(10,7); cout<<"Enter The Str eam Code:\n1.Science Str eam\n2.Commerce Str eam"; gotoxy(32,7); cin>>st; switch(st) { case 1:strcpy(s[i].st_code,"Science"); br eak; case 2:strcpy(s[i].st_code,"Commerce"); br eak; def ault:cout<<"\n\t\t\tInvalid Type.\n\nDo you want to continu e?(Y/N)..."; cin>>ch; if (ch=='y'||ch=='Y') { clrscr(); goto sa; } else add(); }
clrscr(); gotoxy(20,2); cout<<"Student Data Entry For m"; gotoxy(20,3); cout<<"-----------------------"; gotoxy(10,5); cout<<"Enter The Following Marks"; gotoxy(10,10); cout<<"Sub1(Eng/Eng):";
//Sub 1
gotoxy(30,10); cin>>s[i].sub1; gotoxy(10,12); cout<<"Sub2(Math/A/C):";
//Sub 2
gotoxy(30,12); cin>>s[i].sub2; gotoxy(10,14); cout<<"Sub3(Phy/Eco):";
//Sub 3
gotoxy(30,14); cin>>s[i].sub3; gotoxy(10,16); cout<<"Sub4(Chem/B.st):"; gotoxy(30,16);
//Sub 4
cin>>s[i].sub4; gotoxy(10,18);
//Sub 5
cout<<"Sub5(Bio/Com p):"; gotoxy(30,18); cin>>s[i].sub5; s[i].total=s[i].sub1+s[i].sub2+s[i].sub3+s[i].sub4+s[i].sub5;
if ((s[i].sub1<33)||(s[i].sub2<33)||(s[i].sub3<33)||(s[i].sub4<33)||(s[i].sub5<33)
) strcpy(s[i].div,"Fail"); else if (s[i].total>=375) strcpy(s[i].div,"Distintion"); else if ((s[i].total>=300)&&(s[i].total<375)) strcpy(s[i].div,"First Class"); else if ((s[i].total>=250)&&(s[i].total<300)) strcpy(s[i].div,"Second Class"); else if (s[i].total<165) strcpy(s[i].div,"Fail");
strcat(f n,s[i].name); strcat(f n,".txt");
f ile.open(f n,ios::out); if (!f ile) { gotoxy(25,79); cout<<"."; } f ile<<"Re port Card Of "<>ch; }while(ch=='y'||ch=='Y'); if (ch=='n'||ch=='N') student_ menu(); }
/******************************Function Marks**********************/ void mod() { int r egno,f lag=0,i; char ch; student te; clrscr(); cout<<"\n\nEnter The Reg No to be modif ied:"; cin>>r egno; f or(i=0;i<10;i++) {
To
Modi f y
if (s[i].r edgno==r egno) { f lag=1; cout<<"\nSubject 1
:"<>te.sub1;
s[i].sub1=te.sub1; } cout<<"\nSubject 2 :"<>te.sub2; s[i].sub2=te.sub2; } cout<<"\nSubject 3 :"<>te.sub3; s[i].sub3=te.sub3; } cout<<"\nSubject 4 :"<>te.sub4; s[i].sub4=te.sub4; } cout<<"\nSubject 5 :"<>te.sub5; s[i].sub5=te.sub5; } } } if (f lag==0) cout<<"Invalid Reg No!"; }
/****************************Function Help***************************/
To
Vi ew
void help() { //clrscr(); message("This Sof twar e is designed f or aiding schools in", "k ee ping r e port of students and their inf or mation.", "This sof twar e is a interactive menu driven program.", "This program will cr eate a f ile with students name ", "with his or her r e port","OK",LIGHTGRAY); gotoxy(15,14); getch(); main_ menu();
/*********************************Menus*************************** **********/ /********************************M enu Marks**************************/ void view() { int opt,i,r eg,f lag=0; char n[20],ch;
To
View
view: opt=menu("1.View All","2.Search Reg No","3.Show Failers","4.Read From File"
,"5.Back ","[","]", "Dispay Menu","="); switch(opt) { case 1: f or(i=0;i<10;i++) { clrscr(); if (s[i].r edgno!=NULL) { cout<<"Re port Card Of "<>r eg; f or(i=0;i<10;i++) { if (s[i].r edgno==r eg) { cout<<"Re port Card Of "<>ch; } while(ch=='y'||ch=='Y'); main_ menu(); }
//Show All Marks
/*********************************Main Menu**********************************/ void main_ menu() { char ch1; do{ clrscr(); cout<<"Enter Your O ption:"; cin>>ch1;
ch1=menu("1. Students Details","2. Modif y Students","3. Help","4. Exit"); switch(ch1) { case 1:clrscr();
//Student Menu
student_ menu(); br eak; case 2:clrscr();
//Marks Menu
mark_ menu(); br eak; case 3:help(); br eak; case 4:clrscr(); updown();
//Exit
exit(0); br eak; case 6:clrscr();
//Exit
br eak; def ault:cout<<"\n\nWrong Choice!!"; } }while(ch1==4); } /*********************************Marks Menu**********************************/ void mark_ menu() { int t_r edg,i,opt,f lag=0; char ch='y',na[20]; do { clrscr(); gotoxy(1,25); cout<<"Pr ess Esc to Quit"; opt=menu("1.Modif y Student","2.Remove Student","3.Back "); switch(opt) { case 1:
clrscr();
//Modif y Student
getch(); mark_ menu(); br eak; case 2:
clrscr();
//Delete Student
cout<<"Which Student Do you want to Delete\nEnter Reg No:"; cin>>t_r edg; f or(i=0;i<10;i++) { if (s[i].r edgno==t_r edg) { strcat(na,s[i].name); strcat(na,".txt"); if (r emove(na)) cout<<"The Record of "<>ch; }while(ch=='y'||ch=='Y'); if (ch=='n'||ch=='N') main_ menu(); }
/******************************Main Function*********************************/ void main() {
clrscr(); main_ menu(); getch(); }
/************************************End*************************** **********/