Вы находитесь на странице: 1из 36

JANIPUR, JAMMU

ON

UNDER THE GUIDANCE OF ASHISH SAWHNEY

SUBMITTED BY SHEETAL KOUL CLASS ROLL NO:-67 BOARD ROLL NO:-

ACKNOWLEDGEMENT
I express my deep sense of gratitude to Ashish Sawhney of Dream Land Public School, Janipur, Jammu. Its a great privilege to have been his student & benefited from his excellent guidance.

Name:- SHEETAL KOUKL Class:- 12th

CERTIFICATE
This is to certify that the project entitled STUDENT RESULT SYSTEM in C++ present in them has been successfully completed by

SHEETAL

KOUL of class XII .In the due

fulfillment of requirement for annual session 20112012.

Teachers Signature

Principal Signature

CONTENTS
Certificate Acknowledgement

Software & Hardware Requirements

Introduction of the Project Introduction to the C++ Objective of the Project Coding Screen Shots Scope & Recommendations

Bibliography
4

SOFTWARE REQUIREMENT Operating System Application used Windows XP or higher versions of Windows Turbo C++

HARDWARE REQUIREMENT Hard Disk Compact Disk Mouse RAM Processor Monitor Others 80 GB or Higher Capacity 700 MB Serial or USB etc 256 MB or higher Pentium-IV or higher 14 inch Colored or VGA Speakers, DVD-ROM etc

Introduction
GENERAL INTRODUCTION

The student records are a virtual storage of knowledge. It has records of all students. Maximum organizations retain the addresses of their students so that they can get their information easily. Having a large number of addresses, a student result system is the easiest source of obtaining information of students records. However the user should be well-versed in its use. The addresses in most of the student result system are classified according to various means. This classification system divides all addresses in to five broad divisions, with each division having numerous sub divisions. The divisions are as follows: Generalities Alphabetically. Designations Religion Language

ABOUT THE PROJECT

Students Result System: Students Result System Operations provides detailed information of students records. This project is basically an attempt to automate the operations related to personal detail of the students.

This Students Result system includes modules: 1. Single Results 2. Multi Results 3. View All 4. Exit. All these records are required in the proper management of the details of the students. An attempt has been made to

computerize all activities related to personal information functions so as to satisfy the students. The project is developed using C++ an Object Oriented Programming Language based on Real World Modeling Concept.

OBJECTIVES OF THE PROJECT

Project to be developed is going to achieve the following objectives: Helps in eliminating the individual maintenance of the record storage of students. Helps modules. Helps in fast retrieval or instant availability of in reducing the maintenance time by

automatically shifting/storing the information in relevant

information required.

Provides flexibility to bring the required change in a record in case of modification or deletion or seeking information of queries. Helps in reducing manual power requirement to a single student i.e. computer operator.

C++ programming language is developed at AT & T bell laboratories. This language was developed by Bajarne Stroustrup in early 1980s. Bajarne was working in simula67 (an object oriented language) and C language. He wanted to create a language that to create a language that should combine the features of both these languages. The result of his quest was the development of C++. He found that C language is lacking to model real life problems in programming. The original name of C++ was C with classes. Later, Ricky Mascittii renamed it to C++.

This name was inspired from increment operator (++) of c+ +. Presently, C++ is a very popular programming language having its own committee of C++. The object oriented technology is the main reason behind the success of C++. With this, it is vary easy to model the real world problems into programming.

DATA DICTIONARY
It is a structured repository of data about data. It is a set of all definitions of DFD elements and Data Structures. .Data Dictionary is an important step in building a data base.

10

QUERY
COMPUTERIZATION OF STUDENT RESULT SYSTEM

STUDENT

DESCRIPTION OF THE PROJECT BY DATA FLOW DIAGRAM (DFD)

CODING
#include<stdio.h> #include<conio.h> #include<string.h> #include<graphics.h> #include<dos.h> #include<process.h>

11

struct strudent { char name[60]; int id; int mark[5]; float gp[5]; char grade[2]; }st[5];

void menu(); void menu1(); void menu2(); void mouse(); void mouse1(); void mouse2(); void message(); void single_info(); void multi_info(); void single_result(); void view_all(); int check(int mrk); float s_gp(int mrk);

12

void grd(float gpa1,int i); void output(int i); unsigned initmouse(); void showmouse(); void hidemouse(); void restrictmouse(int x1,int y1,int x2,int y2); void getmouse(int *button,int *x,int *y); void main() { clrscr(); menu(); } void menu() { char mnu[30]; int gd=0,gm initgraph(&gd,&gm,".\\BGI"); rectangle(60,350,400,60); rectangle(145,130,300,100); rectangle(145,190,300,160); rectangle(250,280,350,250); setcolor(10); sprintf(mnu," STUDENT RESULT SYSTEM");

13

settextstyle(TRIPLEX_FONT,0,5); outtext(mnu);

setcolor(13); sprintf(mnu,"MAIN MENU"); settextstyle(TRIPLEX_FONT,0,1); outtextxy(170,70,mnu);

setcolor(12); sprintf(mnu,"STUDENT INFO"); settextstyle(TRIPLEX_FONT,0,1); outtextxy(160,103,mnu);

setcolor(12); sprintf(mnu,"VIEW RESULT"); settextstyle(TRIPLEX_FONT,0,1) outtextxy(164,163,mnu);

setcolor(YELLOW); sprintf(mnu,"EXIT"); settextstyle(TRIPLEX_FONT,0,1); outtextxy(280,253,mnu); message();

14

mouse(); } void mouse() { int x,y,button; if(initmouse()==0) { printf("Mouse support unavailable"); return; } restrictmouse(0,0,650,485); showmouse(); while(1) { getmouse(&button,&x,&y) if(x>=144&&x<=301&&y>=100&&y<=129&&button==1) { closegraph(); clrscr(); menu1(); } else if(x>=144&&x<=301&&y>=158&&y<=190&&button==1)//checks if exi button is pressed or not

15

{ closegraph(); clrscr(); menu2(); } else if(x>=248&&x<=352&&y>=248&&y<=281&&button==1)//checks if exit button is pressed or not { closegraph(); break; } } } void menu1() { char mnu[30]; int gd=0,gm; initgraph(&gd,&gm,".\\BGI"); rectangle(60,350,400,60); rectangle(145,130,300,100); rectangle(145,190,300,160); rectangle(250,280,350,250); rectangle(80,280,195,250);

16

setcolor(10); sprintf(mnu," STUDENT RESULT SYSTEM"); settextstyle(TRIPLEX_FONT,0,5); outtext(mnu);

setcolor(13); sprintf(mnu,"STUDENT INFORMATION") settextstyle(TRIPLEX_FONT,0,1); outtextxy(125,70,mnu);

setcolor(12); sprintf(mnu,"SINGLE STUDENT"); settextstyle(TRIPLEX_FONT,0,1); outtextxy(149,103,mnu);

setcolor(12); sprintf(mnu,"MULTI STUDENT"); settextstyle(TRIPLEX_FONT,0,1); outtextxy(153,163,mnu);

setcolor(YELLOW); sprintf(mnu,"MAIN MENU"); settextstyle(TRIPLEX_FONT,0,1);

17

outtextxy(86,253,mnu);

setcolor(YELLOW); sprintf(mnu,"EXIT"); settextstyle(TRIPLEX_FONT,0,1); outtextxy(280,253,mnu); message(); mouse1(); } void mouse1() { int x,y,button; if(initmouse()==0) { printf("Mouse support unavailable") return; } restrictmouse(0,0,650,485); showmouse(); while(1) { getmouse(&button,&x,&y); gotoxy(35,20);

18

if(x>=144&&x<=301&&y>=100&&y<=129&&button==1) { closegraph(); clrscr(); single_info(); } else if(x>=144&&x<=301&&y>=158&&y<=190&&button==1)//checks if exit button is pressed or not { closegraph(); clrscr(); multi_info(); } else if(x>=248&&x<=352&&y>=248&&y<=281&&button==1)//checks if exit button is pressed or not { closegraph(); break; } else if(x>=78&&x<=196&&y>=249&&y<=281&&button==1)//checks if exit button is pressed or not { closegraph();

19

menu(); } } } void single_info() { int i,j=-1; printf("\nEnter Name:"); gets(st[0].name); printf("\nEnter id:"); scanf("%d",&st[0].id); for(i=0;i<5;i++) { printf("\nEnter %d Mark:",i+1); scanf("%d",&st[0].mark[i]); j=check(st[0].mark[i]); if(j==1) { printf("\nYou Enter Invalid input."); printf("PRESS ANY KEY TO EXIT."); getch(); exit(0); }

20

} menu(); } void multi_info() { int i,j=-1,k; for(k=0;k<5;k++) { printf("\nEnter %d Name:",k+1); scanf("%s",st[k].name); printf("\nEnter id:"); scanf("%d",&st[k].id); for(i=0;i<5;i++) { printf("\nEnter %d Mark:",i+1); scanf("%d",&st[k].mark[i]); j=check(st[k].mark[i]); if(j==1) { printf("\nYou Enter Invalid input."); printf("PRESS ANY KEY TO EXIT."); getch(); exit(0);

21

} } } menu(); } int check(int mrk) { if(mrk>100 || mrk<0) return 1; else return 0; } void menu2() { char mnu[30]; int gd=0,gm; initgraph(&gd,&gm,".\\BGI"); rectangle(60,350,400,60); rectangle(145,130,300,100); rectangle(145,190,300,160); rectangle(250,280,350,250); rectangle(80,280,195,250); setcolor(10);

22

sprintf(mnu," STUDENT RESULT SYSTEM"); settextstyle(TRIPLEX_FONT,0,5); outtext(mnu);

setcolor(13); sprintf(mnu,"RESULT"); settextstyle(TRIPLEX_FONT,0,1); outtextxy(190,70,mnu);

setcolor(12); sprintf(mnu,"SINGLE RESULT"); settextstyle(TRIPLEX_FONT,0,1); outtextxy(155,103,mnu);

setcolor(12); sprintf(mnu,"VIEW ALL"); settextstyle(TRIPLEX_FONT,0,1); outtextxy(180,163,mnu);

setcolor(YELLOW); sprintf(mnu,"MAIN MENU"); settextstyle(TRIPLEX_FONT,0,1); outtextxy(86,253,mnu);

23

setcolor(YELLOW); sprintf(mnu,"EXIT"); settextstyle(TRIPLEX_FONT,0,1); outtextxy(280,253,mnu); message(); mouse2(); } void mouse2() { int x,y,button; if(initmouse()==0) { printf("Mouse support unavailable"); return; } restrictmouse(0,0,650,485); showmouse(); while(1) { getmouse(&button,&x,&y); gotoxy(35,20); if(x>=144&&x<=301&&y>=100&&y<=129&&button==1)

24

{ closegraph(); clrscr(); single_result(); } else if(x>=144&&x<=301&&y>=158&&y<=190&&button==1)//checks if exit button is pressed or not { closegraph(); clrscr(); view_all(); } else if(x>=248&&x<=352&&y>=248&&y<=281&&button==1)//checks if exit button is pressed or not { closegraph(); exit(0); } else if(x>=78&&x<=196&&y>=249&&y<=281&&button==1)//checks if exit button is pressed or not { closegraph(); menu();

25

} } } void single_result() { int id1,i,flag=-1,j; float total_gp=0,gpa; printf("Enter Id:"); scanf("%d",&id1); for(i=0;i<5;i++) if(id1==st[i].id) { flag=1; break; } if(flag==1) { for(j=0;j<5;j++) { st[i].gp[j]=s_gp(st[i].mark[j]); total_gp+=st[i].gp[j]; } gpa=total_gp/5;

26

grd(gpa,i); output(i); printf("\nPress any key to continue......."); getch(); menu2(); } else { printf("NOT FOUND."); printf("\nPress any key to continue......."); getch(); menu2(); } } void view_all() { float total_gp,gpa; int i,j; for(i=0;i<5;i++) { total_gp=0; for(j=0;j<5;j++) {

27

st[i].gp[j]=s_gp(st[i].mark[j]); total_gp+=st[i].gp[j]; } gpa=total_gp/5; grd(gpa,i); getch(); } for(i=0;i<5;i++) { printf("\n %d student",i+1); printf("\nStudent name:%s",st[i].name); printf("\nStudent Id:%d",st[i].id); printf("\nStudent Grade:%s",st[i].grade); } printf("\nPress any key to continue......."); getch(); menu2(); } float s_gp(int mrk) aaaa float gp; if(mrk>89) gp=4;

28

else if(mrk>79) gp=3.75; else if(mrk>69) gp=3.5; else if(mrk>59) gp=3.25; else if(mrk>49) gp=3; else gp=0; return gp; } void grd(float gpa1,int i) { if(gpa1==4) strcpy(st[i].grade,"A+"); else if(gpa1>=3.75) strcpy(st[i].grade,"A"); else if(gpa1>=3.5) strcpy(st[i].grade,"A-"); else if(gpa1>=3.25) strcpy(st[i].grade,"B+"); else if(gpa1>=3)

29

strcpy(st[i].grade,"B"); if(gpa1<3) strcpy(st[i].grade,"F"); } void output(int i) { clrscr(); printf("\nStudent Name:%s",st[i].name); printf("\nStudent ID:%d",st[i].id); printf("\nStudent Grade:%s",st[i].grade); } void message() { char mnu[30]; setcolor(WHITE); rectangle(637,350,420,60); setcolor(11); sprintf(mnu,"Develobed by :"); settextstyle(TRIPLEX_FONT,0,1); outtextxy(440,60,mnu); sprintf(mnu,"ROSHAN LAL KANDLEY"); outtextxy(440,100,mnu); sprintf(mnu,"AND");

30

outtextxy(440,140,mnu); sprintf(mnu,"RAKESH KUMAR"); outtextxy(440,180,mnu); sprintf(mnu,"COLLEGE:"); outtextxy(440,220,mnu); sprintf(mnu,"IECS POLYTECHNIC"); outtextxy(440,260,mnu); } unsigned initmouse() { _AX=0; geninterrupt(0x33);//Generate Inpterrupt return _AX; } void showmouse() { _AX=1; geninterrupt(0x33); } void hidemouse() { _AX=2; geninterrupt(0x33);

31

} void restrictmouse(int x1,int y1,int x2,int y2) { _AX=7; _CX=x1; _DX=x2; geninterrupt(0x33); _AX=8; _CX=y1; _DX=y2; geninterrupt(0x33); } void getmouse(int *button,int *x,int *y) { _AX=3; geninterrupt(0x33); *button=_BX; *x=_CX; *y=_DX; }

32

OUPUT SCREEN

33

34

SCOPE & RECOMMENDATIONS


The students result system developed by us will completely automate the working Operations of students. It will reduce the need of keeping manual records. All the operations have been completely integrated in the students. It will act as a single window filing area for all types of information of students records, whether they may be the information about the staff, about the students, non-teaching staff etc. As nothing is complete, so some drawbacks may be these in the future applications. We have developed these results from a students point of view. We may not been able to incorporate all information in the students records. The student can be further enriched by attaching more information about the organization so that users can get everything from the student about visiting personally these.

35

BIBLIOGRAPHY:
BOOKS
OBJECT ORIENTED PROGRAMMING USING C++.

AUTHORS 1. K.R VENU GOPAL AND RAJ KUMAR 2. E.BAL GURU SWAMI 3. ROBERT LAFORD AND GALGOTIA 4. HEMANT KAPILA 5. SATISH JAIN AND VINEETA PILLIAI

36

Вам также может понравиться