School Management System
School Management System
2018-19
NO 1 CANTT
SHAHJAHANPUR (SHIFT II)
A PROJECT REPORT ON
SCHOOL MANAGAMENT
A Combined Dissertation Submitted in Partial Fulfillment for
AISSCE 2018-2019
CENTRAL BOARD OF SECONDARY EDUCATION
CERTIFICATE
This work has been prepared as a partial fulfillment for the AISSCE 2018-
2019 and he seemed to have while preparing and completing this project.
Signature Signature
(Internal Examiner) (External Examiner)
With regards
Ausaaf Nabi
Furqan Ali
Harsh Saxena
Pushkar Mishra
3|Page SCHOOL MANAGAMENT
CONTENT
1. OVERVIEW 5
2. HARDWARE AND SOFTWARE 6
REQUIREMENTS
3. CONCEPT OF OBJECT ORIENTED 7
PROGRAMMING
4. FRONT END INTRODUCTION OF C++ 9
5. FEATURES OF C++ 10
6. USER DEFINED FUNCTIONS/CLASSES 11
7. SCREEN SHOTS 12
8. CODING 16
9. CONCLUSION 52
10. LIMITATIONS OF PROJECT 53
11. REFRENCES 54
1. HARDWARE
:-An Intel based central processing unit capable of running any sort of windows
Operating system such as pentinum based workstations
:-Keyboard
2. SOFTWARE
Window 98 or above
.C++ Editor
Microsoft word
Object
This is the basic unit of object oriented programming. That is both data
and function that operate on data are bundled as a unit called as object.
Class
When you define a class, you define a blueprint for an object. This
doesn't actually define any data, but it does define what the class name
means, that is, what an object of the class will consist of and what
operations can be performed on such an object.
Abstraction
Data abstraction refers to, providing only essential information to the
outside world and hiding their background details, i.e., to represent the
needed information in program without presenting the details .
For example, a database system hides certain details of how data is
stored and created and maintained. Similar way, C++ classes provides
different methods to the outside world without giving internal detail
about those methods and data.
Inheritance
One of the most useful aspects of object-oriented programming is code
reusability. As the name suggests Inheritance is the process of forming
a new class from an existing class that is from the existing class called
as base class, new class is formed called as derived class.
This is a very important concept of object-oriented programming since
this feature helps to reduce the code size.
Polymorphism
The ability to use an operator or function in different ways in other
words giving different meaning or functions to the operators or
functions is called polymorphism. Poly refers to many. That is a single
function or an operator functioning in many ways different upon the
usage is called polymorphism.
Overloading
The concept of overloading is also a branch of polymorphism. When
the exiting operator or function is made to operate on new data type, it
is said to be overloaded.
10 | P a g e SCHOOL MANAGAMENT
USER DEFINED FUNCTIONS/CLASSES
void creat();
void read();
void search();
void upd();
void delet();
void welcome();
11 | P a g e SCHOOL MANAGAMENT
SCREEN SHOTS
12 | P a g e SCHOOL MANAGAMENT
13 | P a g e SCHOOL MANAGAMENT
14 | P a g e SCHOOL MANAGAMENT
15 | P a g e SCHOOL MANAGAMENT
//*****************************************************
**********************
// HEADER FILES
//*****************************************************
**********************
#include<iostream.h>
#include<conio.h>
#include<stdlib.h>
#include<stdio.h>
#include<process.h>
#include<graphics.h>
#include<fstream.h>
#include<string.h>
//*****************************************************
**********************
// USER DEFEINED FUNTIONS
//*****************************************************
**********************
16 | P a g e SCHOOL MANAGAMENT
void creat();
void read();
void search();
void upd();
void delet();
void welcome();
//*****************************************************
**********************
// CLASS
//*****************************************************
**********************
class sm
{
public:
char name[20];
int clas,id;
char
fname[20],mname[20],phone[20],add[100],adhaar[20],stream[20];
float sc,m,ss,e,h,l,per;
int getid()
{
17 | P a g e SCHOOL MANAGAMENT
textcolor(1);
int id= 2000 + random(8000);
cout<<"\n\n\t\t " ;
cprintf(" CLICK TO GENERATE ADDMISSION NUMBER");
getch();
cout<<"\n\n\n \t";
cprintf(" ADDMISSION NUMBER OF STUDENT = ");
cout<<id;
cout<<"\n\n\n\t\t";
cprintf("CONGURALATIONS YU ARE SUCCESSFULLY
ADDMITTED") ;
return id;
}
void cutoff()
{
textcolor(2);
cout<<"\n ";
cprintf("Stream Minimum marks");
cout<<"\n\n";
cprintf("Science 75%");
18 | P a g e SCHOOL MANAGAMENT
cout<<"\n\n";
cprintf("Commerce 55%");
cout<<"\n\n";
cprintf("Arts 40%");
}
float percentage()
{
float t=h+e+sc+ss+m+l ;
per=t/6 ;
return per;
}
void getdetails()
{
textcolor(4);
cout<<"\n";
cprintf("Enter class for addmission=");
cin>>clas;
if(clas<1||clas>11)
{
cout<<"\n";
19 | P a g e SCHOOL MANAGAMENT
cprintf("Enter a valid class from 1 - 11");
}
else if(clas==1)
{
textcolor(9);
cout<<"\n";
cprintf("Enter student's name=");
gets(name);
cout<<"\n";
cprintf("Enter father's name=");
gets(fname);
cout<<"\n";
cprintf("Enter mother's name=");
gets(mname);
cout<<"\n";
cprintf("Enter phone number=");
gets(phone);
cout<<"\n";
cprintf("Enter address=");
gets(add);
20 | P a g e SCHOOL MANAGAMENT
cout<<"\n";
cprintf("Enter adhaar number=");
gets(adhaar);
id=getid();
}
else if(clas>1&&clas<11)
{
textcolor(6);
cout<<"\n";
cprintf("Enter student's name=");
gets(name);
cout<<"\n";
cprintf("Enter father's name=");
gets(fname);
cout<<"\n";
cprintf("Enter mother's name=");
gets(mname);
cout<<"\n";
cprintf("Enter phone number=");
gets(phone);
21 | P a g e SCHOOL MANAGAMENT
cout<<"\n";
cprintf("Enter address=");
gets(add);
cout<<"\n";
cprintf("Enter adhaar number=");
gets(adhaar);
cout<<"\n";
cprintf("Enter marks of all the subject of previous class:-");
cout<<"\n";
cprintf("English=");
cin>>e;
cout<<"\n";
cprintf("Hindi=");
cin>>h;
cout<<"\n";
cprintf("Maths=");
cin>>m;
cout<<"\n";
cprintf("Science=");
cin>>sc;
22 | P a g e SCHOOL MANAGAMENT
cout<<"\n";
cprintf("Social science=");
cin>>ss;
cout<<"\n";
cprintf("Language (ex-Sanskrit/German/French etc.)=");
cin>>l;
float p=percentage();
if(p>33)
{
cout<<"\n";
cprintf("You are eligible for addmission");
id=getid();
}
else
cout<<"\n ";
cprintf("You are not elidgible for addmission");
}
else if (clas==11)
{
textcolor(10);
23 | P a g e SCHOOL MANAGAMENT
cout<<"\n";
cprintf("Enter student's name=");
gets(name);
cout<<"\n";
cprintf("Enter father's name=");
gets(fname);
cout<<"\n";
cprintf("Enter mother's name=");
gets(mname);
cout<<"\n";
cprintf("Enter phone number=");
gets(phone);
cout<<"\n";
cprintf("Enter address=");
gets(add);
cout<<"\n";
cprintf("Enter adhaar number=");
gets(adhaar);
cout<<"\n";
cprintf("Enter marks of all the subject of previous class:-");
24 | P a g e SCHOOL MANAGAMENT
cout<<"\n";
cprintf("English=");
cin>>e;
cout<<"\n";
cprintf("Hindi=");
cin>>h;
cout<<"\n";
cprintf("Maths=");
cin>>m;
cout<<"\n";
cprintf("Science=");
cin>>sc;
cout<<"\n";
cprintf("Social science=");
cin>>ss;
cout<<"\n";
cprintf("Language (ex-Sanskrit/German/French etc.)=");
cin>>l;
cout<<"\n";
cprintf("Enter Stream=");
25 | P a g e SCHOOL MANAGAMENT
gets(stream);
float p=percentage();
if(strcmpi(stream,"science")==0)
{
if(p>75)
{
cout<<"\n";
cprintf("You are elidgible for addmission in science stream");
id= getid();
}
else
{
cout<<"\n";
cprintf("You are not elidgible for addmission in science stream");
}
}
else if(strcmpi(stream,"commerce")==0)
{
if(p>55)
{
26 | P a g e SCHOOL MANAGAMENT
cout<<"\n";
{
cprintf("You are elidgible for addmission in commerce stream");
id= getid();
}
}
else
{
cout<<"\n";
cprintf("You are not elidgible for addmission in commerce
stream");
}
}
else if(strcmpi(stream,"arts")==0)
{
if(p>40)
{
cout<<"\n";
cprintf("You are elidgible for addmission in science stream");
id= getid();
27 | P a g e SCHOOL MANAGAMENT
}
else
{
cout<<"\n";
cprintf("You are not elidgible for addmission in science stream");
}
}
}}
void showdetails()
{
if (clas==11||clas==12)
{
textcolor(12);
cout<<"\n";
cprintf("Student's name=");
puts(name);
cprintf("Class=");
cout<<clas<<endl;
cprintf("Addmission number=");
28 | P a g e SCHOOL MANAGAMENT
cout<<id;
cout<<"\n";
cprintf("Father's name=");
puts(fname);
cprintf("Mother's name=");
puts(mname);
cprintf("Phone number=");
puts(phone);
cout<<"\n";
cprintf("Address=");
puts(add);
cprintf("Adhaar number=");
puts(adhaar);
cprintf("Stream=");
puts(stream);
}
else
{
textcolor(13);
cout<<"\n";
29 | P a g e SCHOOL MANAGAMENT
cprintf("Student's name=");
puts(name);
cprintf("Class=");
cout<<clas<<endl;
cprintf("Addmission number=");
cout<<id;
cout<<endl;
cprintf("Father's name=");
puts(fname);
cprintf("Mother's name=");
puts(mname);
cprintf("Phone number=");
puts(phone);
cprintf("Address=");
puts(add);
cprintf("Adhaar number=");
puts(adhaar);
cout<<"\n";
}
}
30 | P a g e SCHOOL MANAGAMENT
void update()
{
textcolor(14);
int c;
cout<<"\n\n";
cout<<"\n\n\nPRESS ANY KEY TO UPDATE";
getch();
clrscr();
cprintf("WHAT YOU WANT TO UPDATE:-\n\n");
if(clas<11)
{
textcolor(15);
cout<<"\n\n";
cprintf("1. NAME");
cout<<"\n\n";
cprintf("2. CLASS");
cout<<"\n\n";
cprintf("3. FATHER's NAME");
cout<<"\n\n";
cprintf("4. MOTHER's NAME");
31 | P a g e SCHOOL MANAGAMENT
cout<<"\n\n";
cprintf("5. ADDRESS") ;
cout<<"\n\n";
cprintf("6. PHONE NUMBER") ;
cout<<"\n\n";
cprintf("7. ADDHAAR NUMBER");
cout<<"\n\n";
cprintf("ENTER YOUR CHOICE=");
cin>>c;
if(c==1)
{
textcolor(1);
cout<<"\n\n\n\n\n";
cprintf("Enter student's name=");
gets(name);
}
if(c==2)
{
cout<<"\n";
cprintf("Enter class=");
32 | P a g e SCHOOL MANAGAMENT
cin>>clas;
}
if(c==3)
{
cout<<"\n";
cprintf("Enter father's name=");
gets(fname);
}
if(c==4)
{
cout<<"\n";
cprintf("Enter mother's name=");
gets(mname);
}
if(c==6)
{
cout<<"\n";
cprintf("Enter phone number=");
gets(phone);
}
33 | P a g e SCHOOL MANAGAMENT
if(c==5)
{
cout<<"\n";
cprintf("Enter address=");
gets(add);
}
if(c==7)
{
cout<<"\n";
cprintf("Enter adhaar number=");
gets(adhaar);
}
}
else if(clas>11)
{
textcolor(2);
cout<<"\n\n";
cprintf("1. NAME") ;
cout<<"\n\n";
cprintf("2. CLASS") ;
34 | P a g e SCHOOL MANAGAMENT
cout<<"\n\n";
cprintf("3. FATHER's NAME") ;
cout<<"\n\n";
cprintf("4. MOTHER's NAME") ;
cout<<"\n\n";
cprintf("5. ADDRESS") ;
cout<<"\n\n";
cprintf("6. PHONE NUMBER") ;
cout<<"\n\n";
cprintf("7. ADDHAAR NUMBER");
cout<<"\n\n";
cprintf("8. STREAM");
cout<<"\n\n\n\n\n";
cprintf("ENTER YOUR CHOICE=");
cin>>c;
if(c==1)
{
textcolor(4);
cout<<"\n\n\n\n\n\n\n";
cprintf("Enter student's name=");
35 | P a g e SCHOOL MANAGAMENT
gets(name);
}
if(c==2)
{
cout<<"\n";
cprintf("Enter class=");
cin>>clas;
}
if(c==3)
{
cout<<"\n";
cprintf("Enter father's name=");
gets(fname);
}
if(c==4)
{
cout<<"\n";
cprintf("Enter mother's name=");
gets(mname);
}
36 | P a g e SCHOOL MANAGAMENT
if(c==6)
{
cout<<"\n";
cprintf("Enter phone number=");
gets(phone);
}
if(c==5)
{
cout<<"\n";
cprintf("Enter address=");
gets(add);
}
if(c==7)
{
cout<<"\n";
cprintf("Enter adhaar number=");
gets(adhaar);
}
}
if(c==8)
37 | P a g e SCHOOL MANAGAMENT
{
cout<<"\n";
cprintf("Enter steram==");
char st[20];
gets(st);
float p=percentage();
if(strcmpi(st,"science")==0)
{
if(p>75)
{
cout<<"\n";
cprintf("You are elidgible for addmission in science stream");
strcpy(stream,"science");
}
else
cout<<"\n";
cprintf("You are not elidgible for addmission in science stream");
}
else if(strcmpi(st,"commerce")==0)
{
38 | P a g e SCHOOL MANAGAMENT
if(p>55)
{
cout<<"\n";
cprintf("You are elidgible for addmission in commerece
stream");
strcpy(stream,"commerce");
}
else
cout<<"\n";
cprintf("You are not elidgible for addmission in science stream");
}
else if(strcmpi(st,"arts")==0)
{
if(p>40)
{
cout<<"\n";
cprintf("You are elidgible for addmission in arts stream");
strcpy(stream,"arts");
}
else
39 | P a g e SCHOOL MANAGAMENT
cout<<"\n";
cprintf("You are not elidgible for addmission in science stream");
}
}
}
void del()
{
clas=0;
id=0;
}
}s;
void creat()
{
s.getdetails();
ofstream fout;
fout.open("data.dat",ios::binary|ios::app);
fout.write((char*)&s,sizeof(s));
}
void search()
{
40 | P a g e SCHOOL MANAGAMENT
textcolor(6);
int r,j,c,cl=0;
cout<<"\n";
cprintf("HOW YOU WANT TO SEARCH:-");
cout<<"\n";
cprintf("1. BY ASSMISSION NUMBER");
cout<<"\n";
cprintf("2. BY CLASS" );
cout<<"\n\n";
cprintf("Enter choice=");
cin>>j;
if(j==1)
{
textcolor(9);
int a;
cout<<"\n\n";
cprintf("ENTER ADDMISSION NUMBER OF STUDENT==");
cin>>a;
ifstream fin;
fin.open("data.dat",ios::binary|ios::beg);
41 | P a g e SCHOOL MANAGAMENT
while(fin.read((char*)&s,sizeof(s)))
{
if(a==s.id)
{
s.showdetails();
cl++;
}
}
if(cl==0)
{
textcolor(15 + BLINK);
cout<<"\n\n";
cprintf("WRONG INPUT !!!!");
}
}
if(j==2)
{
cout<<"\n";
cprintf("ENTER CLASS==");
42 | P a g e SCHOOL MANAGAMENT
cin>>c;
ifstream fin;
fin.open("data.dat",ios::binary|ios::beg);
while(fin.read((char*)&s,sizeof(s)))
{
if(c==s.clas)
{
textcolor(10);
cout<<"\n\t\t\t ";
cprintf("STUDENT OF CLASS ");
cout<<c<<":-";
s.showdetails();
cout<<endl;
cl++ ;
}
}
if(cl==0)
{
textcolor(15 + BLINK);
cout<<"\n\n";
43 | P a g e SCHOOL MANAGAMENT
cprintf("WRONG INPUT !!!!");
}
} }
void upd()
{
textcolor(12);int x;
cout<<"\n\n";
cprintf("ENTER THE ADDMISSION NUMBER WHOSE DATA
IS TO BE UPDATED==");
int add,r,c=0;
cin>>add;
fstream fin;
fin.open("data.dat",ios::binary|ios::beg|ios::in|ios::out);
while(fin.read((char*)&s,sizeof(s)))
{
if(add==s.id)
{
c++;
r=fin.tellg()-sizeof(s);
s.showdetails();
44 | P a g e SCHOOL MANAGAMENT
s.update();
fin.seekp(r);
fin.write((char*)&s,sizeof(s));
textcolor(13 + BLINK) ;
cout<<"\n\n\n\n\n\n\t\t\t\t";
cprintf("YOUR DATA UPDATED");
}
}
if(c==0)
{
textcolor(13 + BLINK);
cout<<"\n\n ";
cprintf("NO RECORD FOUND !!!!");
}
fin.close();
}
void delet()
{
textcolor(14);
cout<<"\n\n";
45 | P a g e SCHOOL MANAGAMENT
cprintf("ENTER THE ADDMISSION NUMBER WHOSE
RECORD IS TO BE DELEATED==");
int add,r,c=0;
cin>>add;
char a;
fstream fin;
fin.open("data.dat",ios::binary|ios::beg|ios::in|ios::out);
while(fin.read((char*)&s,sizeof(s)))
{
if(add==s.id)
{
c++;
r=fin.tellg()-sizeof(s);
s.showdetails();
cout<<"\n\n";
cprintf("ARE YOU SURE YOU WANT TO DELETE
RECORD(Y/N)=");
cin>>a;
if(a=='y'||a=='Y')
{
46 | P a g e SCHOOL MANAGAMENT
s.del();
fin.seekp(r);
fin.write((char*)&s,sizeof(s));
textcolor(13 + BLINK) ;
cout<<"\n\n\n\n\n\n\t\t\t\t";
cprintf("YOUR DATA DELETED");
}
}
}
if(c==0)
{
textcolor(1 + BLINK);
cout<<"\n\n";
cprintf("NO RECORD FOUND!!!!");
}
}
void welcome()
{
cout<<"\n\t%% %% %%%%%%% %% %%%%%%
%%%%%% %%%% %%%% %%%%%%%";
47 | P a g e SCHOOL MANAGAMENT
cout<<"\n\t%% %% %% %% %% %% %% %%
%%% %% %% ";
cout<<"\n\t%% %% %% %%%%% %% %% %%
%% %% %%% %% %%%%% ";
cout<<"\n\t%% %% %% %% %% %% %% %%
%% %% %% ";
cout<<"\n\t%%%%%%%%%% %%%%%%% %%%%%%%
%%%%%%% %%%%%% %% %% %%%%%%% ";
cout<<"\n\n\t\t\t $$$$$$$$ $$$$$ ";
cout<<"\n\t\t\t $$ $ $ ";
cout<<"\n\t\t\t $$ $$$$$ ";
cout<<"\n\n\n\t\t\t\tCOMPUTER PROJECT \n\n\n\t\t
******** SCHOOL MANAGEMENT *******";
getch();
clrscr();
textcolor(4+ BLINK);
cout<<"\t\t\t ";
cprintf("PREPARED BY :-");
cout<<"\n\n\n\t\t\t ";
textcolor(6+BLINK);
cprintf("* SNEHA DIWAKER XII *");
48 | P a g e SCHOOL MANAGAMENT
cout<<"\n\n\t\t\t ";
textcolor(9+BLINK);
cprintf("* PRATIKSHA SHARMA XII *");
cout<<"\n\n\t\t\t ";
textcolor(10+BLINK);
cprintf("* ANKUR KUMAR XII *");
cout<<" \n\n\n\t\t\t ";
textcolor(12) ;
cprintf("press any key continue\n\n\n\n ");
getch();
clrscr();
}
void main()
{
char y;
randomize();
clrscr();
welcome();
textcolor(13);
cout<<"\n\t\t\t";
49 | P a g e SCHOOL MANAGAMENT
cprintf("WHAT OPERATION YOU WANT TO PERFORM:-");
cout<<"\n\n\n";
cprintf("1. CREAT");
cout<<"\n\n";
cprintf("2. SEE MINIMUM MARKS REQUIRED FOR
ADDMISSION IN VARIOUS STREAMS OF CLASS 11 ");
cout<<"\n\n";
cprintf("3. SEARCH ");
cout<<"\n\n";
cprintf("4. UPDATE ");
cout<<"\n\n";
cprintf("5. DELETE RECORD");
cout<<"\n\n";
cprintf("6. EXIT");
cout<<"\n\n\n";
cprintf("ENTER CHOICE=");
int n;
cin>>n;
clrscr();
if(n==1)
50 | P a g e SCHOOL MANAGAMENT
creat();
else if (n==2)
s.cutoff();
else if (n==3)
search();
else if(n==4)
upd();
else if(n==5)
delet();
else
{
exit(0);
}
getch();
}
51 | P a g e SCHOOL MANAGAMENT
CONCLUSION
52 | P a g e SCHOOL MANAGAMENT
LIMITATIONS OF PROJECT
53 | P a g e SCHOOL MANAGAMENT
REFRENCES
54 | P a g e SCHOOL MANAGAMENT