Upload
puneet-chawla
View
227
Download
0
Embed Size (px)
Citation preview
8/3/2019 SHEETAL KOUL
1/36
JANIPUR, JAMMU
ON
UNDER THE GUIDANCE OF SUBMITTED BY
ASHISH SAWHNEY SHEETAL KOULCLASS ROLL NO:-67
BOARD ROLL NO:-
1
8/3/2019 SHEETAL KOUL
2/36
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
2
8/3/2019 SHEETAL KOUL
3/36
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 2011-
2012.
Teachers Signature Principal Signature
3
8/3/2019 SHEETAL KOUL
4/36
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
8/3/2019 SHEETAL KOUL
5/36
SOFTWARE REQUIREMENT
Operating
System
Windows XP or higher versions of
Windows
Application used Turbo C++
HARDWARE REQUIREMENT
Hard Disk 80 GB or Higher Capacity
Compact Disk 700 MB
Mouse Serial or USB etc
RAM 256 MB or higher
Processor Pentium-IV or higher
Monitor 14 inch Colored or VGA
Others Speakers, DVD-ROM etc
Introduction
GENERAL INTRODUCTION
5
8/3/2019 SHEETAL KOUL
6/36
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
6
8/3/2019 SHEETAL KOUL
7/36
ABOUT THE PROJECT
Students Result System:
Students Result System Operations provides detailedinformation of students records. This project is basicallyan attempt to automate the operations related topersonal detail of the students.
This Students Result system includes modules:
1. Single Results2. Multi Results3. View All4. Exit.
All these records are required in the proper management ofthe details of the students. An attempt has been made to
7
8/3/2019 SHEETAL KOUL
8/36
computerize all activities related to personal informationfunctions so as to satisfy the students.
The project is developed using C++ an Object OrientedProgramming 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 in reducing the maintenance time by
automatically shifting/storing the information in relevant
modules.
Helps in fast retrieval or instant availability of
information required.
8
8/3/2019 SHEETAL KOUL
9/36
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++.
9
8/3/2019 SHEETAL KOUL
10/36
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
8/3/2019 SHEETAL KOUL
11/36
DESCRIPTION OF THE PROJECT BY DATA FLOWDIAGRAM (DFD)
CODING
#include
#include
#include
#include
#include
#include
STUDENT
QUERY
COMPUTERI-
ZATION OF
STUDENT
RESULT
SYSTEM
11
8/3/2019 SHEETAL KOUL
12/36
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
8/3/2019 SHEETAL KOUL
13/36
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
8/3/2019 SHEETAL KOUL
14/36
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
8/3/2019 SHEETAL KOUL
15/36
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=100&&y=144&&x=158&&y
8/3/2019 SHEETAL KOUL
16/36
{
closegraph();
clrscr();
menu2();
}
else if(x>=248&&x=248&&y
8/3/2019 SHEETAL KOUL
17/36
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
8/3/2019 SHEETAL KOUL
18/36
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
8/3/2019 SHEETAL KOUL
19/36
if(x>=144&&x=100&&y=144&&x=158&&y=248&&x=248&&y=78&&x=249&&y
8/3/2019 SHEETAL KOUL
20/36
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
8/3/2019 SHEETAL KOUL
21/36
}
menu();
}
void multi_info()
{
int i,j=-1,k;
for(k=0;k
8/3/2019 SHEETAL KOUL
22/36
}
}
}
menu();
}
int check(int mrk)
{
if(mrk>100 || mrk
8/3/2019 SHEETAL KOUL
23/36
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
8/3/2019 SHEETAL KOUL
24/36
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=100&&y
8/3/2019 SHEETAL KOUL
25/36
{
closegraph();
clrscr();
single_result();
}
else if(x>=144&&x=158&&y=248&&x=248&&y=78&&x=249&&y
8/3/2019 SHEETAL KOUL
26/36
}
}
}
void single_result()
{
int id1,i,flag=-1,j;
float total_gp=0,gpa;
printf("Enter Id:");
scanf("%d",&id1);
for(i=0;i
8/3/2019 SHEETAL KOUL
27/36
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
8/3/2019 SHEETAL KOUL
28/36
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;i89)
gp=4;
28
8/3/2019 SHEETAL KOUL
29/36
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
8/3/2019 SHEETAL KOUL
30/36
strcpy(st[i].grade,"B");
if(gpa1
8/3/2019 SHEETAL KOUL
31/36
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
8/3/2019 SHEETAL KOUL
32/36
}
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
8/3/2019 SHEETAL KOUL
33/36
OUPUT SCREEN
33
8/3/2019 SHEETAL KOUL
34/36
34
8/3/2019 SHEETAL KOUL
35/36
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
8/3/2019 SHEETAL KOUL
36/36
BIBLIOGRAPHY:
BOOKS
OBJECT ORIENTED PROGRAMMING USING C++.
AUTHORS
1. K.R VENU GOPAL AND RAJ KUMAR2. E.BAL GURU SWAMI
3. ROBERT LAFORD AND GALGOTIA4. HEMANT KAPILA5. SATISH JAIN AND VINEETA PILLIAI