Download as pdf or txt
Download as pdf or txt
You are on page 1of 20

KENDRIYA VIDYALAYA NORTH

MAHARASHTRA UNIVERSITY, JALGAON


COMPUTER INVESTIGATORY PROJECT
CBSE AISSCE 2018 – 2019

SCHOOL MANAGEMENT

-: Guided by :-
Mr. NITIN ARSE, PGT (COMP)

-: Submitted By :-

HARSH VARDHAN SINGH - XII


&
TUSHAR PATIL - XII
TABLE OF CONTENTS

1) Bona fide Certificate


2) Declaration
3) Acknowledgement
4) Introduction to C++
5) Introduction to Project
6) Source code
7) Outputs
8) Bibliography
Certification
This is to certify that Tushar Patil and

Harsh Vardhan Singh, students of class

XII, has completed his project

successfully on the title “School

Management” under the guidance of Mr.

(Nitin Arse) and principal sir Mr.(Mathew

Abraham) during the year 2018-19 in

partial fulfilment of Computer Science

practical examination.
Signature of Subject Teacher
Signature of Principal

ACKNOWLEDGEMENT

I would like to thank the Computer Science Teacher


Mr. Nitin Arse for giving the extraordinary idea about
this project and guiding this project until finish line.
We would also like to express our thanks to our
Principal Sir Mr. Mathew Abraham for getting this idea
about this project and encouraging us.

Our thanks should not stop alone with teachers. Our


friends and parents even played a big part in it. I see
this project as a result of hard work from us and
innovation from our teacher. So, we once again thank
all of them who put their hands in it and made
successful
INTRODUCTION TO C++
C++ is a programming Language Developed by Bjarne Stroustrup. It was
originally named as C with classes, was renamed as C++ in 1983.It is
regarded as an intermediate-level language, as it comprises both high-level
and low-level language features. Its application domains include systems
software, application software, device drivers, embedded software, high
performance server and client applications, and entertainment software
such as video games. C++ continues to be used and is one of the preferred
programming languages to develop professional applications.

The Features of C++ as a Language

Now that all the necessary theory has been covered, now it is possible to
explain what C++ has to offer as a programming language. C++ is an open
source ISO-standardized language. For a time, C++ had no official standard
and was maintained by a defacto standard, however since 1998, C++ is
standardized by a committee of the ISO. • ...is a compiled language. C++
compilers directly to a machine's native code, allowing it to be one of the
fastest languages in the world, if optimized. • ...supports both static and
dynamic type checking. C++ allows type conversions to be checked either at
compile-time or at run-time, again offering another degree of flexibility.
Most C++ type checking is, however, static. • ...is portable. As one of the most
frequently used languages in the world and as an open language, C++ has a
wide range of compilers that run on many different platforms that support
it. Code that exclusively uses C++'s standard library will run on many
platforms with few to no changes.
INTRODUCTION TO PROJECT

Every School needs to maintain Data bases of the students. The


data base on the students is required for general purpose like
collection fees, admission process.
School management is Software developed by a team of students
Harsh Vardhan Singh and Tushar Patil of Kendriya Vidyalaya
NMU Jalgaon as part of the curriculum of XII standard CBSE.
Using this Software, under the Office module, the database on
the students can be created, modified. This software is useful to
maintain updated and error free status of all the Students. The
Motive of this software is to dilute the work of office staffs, and
to reduce the use of paper.
SOURCE CODE

#include<iostream.h> //FOR INPUT OUTPUT FUNCTION


#include<conio.h> //FOR GOTOXY, CLRSCR
#include<fstream.h> //FOR READ AND WRITE
#include<stdio.h> //FOR GETS FUNCTION
#include<process.h> //FOE EXIT FUNCTION
#include<string.h> //FOR STRING
#include<dos.h> //FOR DELAY FUNCTION

/*************************************
| FUNCTION PROTOTYPES |
************************************/

void gotoxy(int x,int y);


void password();
void Enter();
void exit(int );

/*************
| CLASS USED |
**************/

class student
{
public:
char dob[15];
char father_name[80];
char mother_name[80];
char religion[15];
char nationality[15];
int admno;
char name[80];
char mobile[15];
char address[80];

void input();
void display();
void search();
void modify();
}obj;
/***********************************
| MAIN FUNCTION |
***********************************/

void main()
{
x1:
clrscr();
cout<<"\n";
cout<<"\t\t ******************************************\n";
cout<<"\t\t ** S C H O O L M A N A G E M E N T **\n";
cout<<"\t\t ******************************************\n";
gotoxy(2,27);
cout<<"DEVELOPER: HARSH VARDHAN SINGH AND TUSHAR PATIL";
gotoxy(14,6);
cout<<"WELCOME TO KENDRIYA VIDYALAYA NORTH MAHARASHTRA
UNIVERSITY";
gotoxy(16,10);
cout<<"THIS GUIDES TO INFORMATION ACCESS REGARDING";
gotoxy(26,12);
cout<<"ADMINISTRATION ";
gotoxy(20,14);
cout<<"THIS CAN ACCESED ONLY BY ADMINISTRATORS";
gotoxy(24,19);
password();

/*****************************************************************
| FOR CHECKING PASSWORD TO ENSURE THE USER IS ADMINISTATOR OR NOT |
******************************************************************/

void password()
{
char inpass[10];
cout<<"Enter password : ";
for(int i=0;i<5;i++)
{
inpass[i]=(char)getch();
cout<<"*";
}

if(inpass[0]=='k'&&inpass[1]=='v'&&inpass[2]=='n'&&inpass[3]=='m'&&i
npass[4]=='u')

{
clrscr();
Enter();
}
else
{
clrscr();
gotoxy(28,11);
cout<<"ACCESS DENIED!!!";
gotoxy(5,24);
cout<<"\t\t\t\t < 0 FOR > EXIT";
gotoxy(28,12);
cout<<"The password is wrong!!! RETRY!!!";
gotoxy(28,13);
cout<<"Enter any key: ";
gotoxy(28,28);
char r;
cin>>r;
if(r==0)
exit(1);
else
getch();
main();
}
}

/*******************************************
| ENTER FUNCTION (TO ENTER CHOICE) |
********************************************/

void Enter()
{
int ch;
char ch3='y';
char ch1,ch2;

do
{
f1:
clrscr();
cout<<"\n";
cout<<"\t\t -------------------------------------------\n";
cout<<"\t\t| WELCOME TO KENDRIYA VIDYALAYA NMU JALGAON |\n";
cout<<"\t\t ------------------------------------------\n";
gotoxy(15,10);
cout<<"\t\t1)Enter new details \n";
gotoxy(15,11);
cout<<"\t\t2)Edit details \n";
gotoxy(15,12);
cout<<"\t\t3)Search details \n";
gotoxy(15,13);
cout<<"\t\t4)Exit \n";
gotoxy(20,14);
cin>>ch;

switch(ch)
{

case 1:obj.input();
//***********************
break; // INPUT FUNCTION CALLED
//***********************
case 2:obj.modify();
//***********************
break; // MODIFY FUNCTION CALLED
//***********************
case 3:obj.search();

//***********************
break; // SEARCH FUNCTION CALLED
//***********************

case 4:gotoxy(20,20);

textcolor(12);
cprintf("Are you sure you want to exit(y/n): ");
cin>>ch1;
if(ch1=='y'||ch1=='Y')
exit(1);

default: cout<<"\nSorry you entered wrong choice!!!";


textcolor(12);cprintf("TRY AGAIN");
goto f1;

gotoxy(25,22);
cout<<"\nIf you want to continue(y/n): ";
gotoxy(56,22);
cin>>ch3;

}while(ch3=='y'||ch3=='Y');

getch();

/*********************************************************
| INPUT FUNCTION (TO INPUT THE DETAILS OF STUDENTS) |
**********************************************************/
void student::input()
{
char ch,ch2;
clrscr();
cout<<"\n";
cout<<"\t\t -------------------------------------------\n";
cout<<"\t\t| WELCOME TO KENDRIYA VIDYALAYA NMU JALGAON |\n";
cout<<"\t\t ------------------------------------------\n";
fstream f;
f.open("Studetails.dat",ios::app|ios::binary);
do
{
f2:
clrscr();
cout<<"\t\t ---------------------------------- \n";
cout<<"\t\t | E N T E R I N F O R M A T I O N |\n ";
cout<<"\t\t ----------------------------------\n";
gotoxy(10,24);
cout<<"PLEASE ENTER THE DETAILS ONLY IN CAPTIAL LETTERS";
gotoxy(25,9);
cout<<"ADMISSION NO.: ";
gotoxy(25,10);
cout<<"NAME : ";
gotoxy(25,11);
cout<<"DATE OF BIRTH : ";
gotoxy(25,12);
cout<<"FATHER NAME : ";
gotoxy(25,13);
cout<<"MOTHER NAME : ";
gotoxy(25,14);
cout<<"ADDRESS : ";
gotoxy(25,15);
cout<<"CONTACT : ";
gotoxy(25,16);
cout<<"RELIGION : ";
gotoxy(25,17);
cout<<"NATIONALITY : ";
gotoxy(43,9);
cin>>obj.admno;
gotoxy(43,10);
gets(obj.name);
gotoxy(43,11);
gets(obj.dob);
gotoxy(43,12);
gets(obj.father_name);
gotoxy(43,13);
gets(obj.mother_name);
gotoxy(43,14);
gets(obj.address);
gotoxy(43,15);
gets(obj.mobile);
gotoxy(43,16);
gets(obj.religion);
gotoxy(43,17);
gets(obj.nationality);

gotoxy(25,20);
cout<<"Do you want to save details(y/n): ";
gotoxy(60,20);
cin>>ch;

if(ch=='y'||ch=='Y')
{
f.write((char*)&obj,sizeof(obj));
f.close();
}
else
goto f2;
gotoxy(25,21);
cout<<"IF YOU WANT TO ENTER MORE(Y/N): ";
gotoxy(58,21);
cin>>ch2;

}while(ch2=='y'||ch2=='Y');

/*****************************
| DISPLAY FUNCTION |
******************************/

void student::display()
{
int rn;
clrscr();
cout<<"\t\t ------------------------------\n";
cout<<"\t\t| S T U D E N T D I S P L A Y |\n";
cout<<"\t\t ------------------------------\n";
cout<<"\t\t -----------------------\n";
cout<<"\t\t | S T U D E N T I N F O | \n";
cout<<"\t\t -----------------------\n";
gotoxy(30,8);
cout<<"ENTER THE ADMIN NO : ";
cin>>rn;
clrscr();
cout<<"\t\t ------------------------\n";
cout<<"\t\t| S T U D E N T I N F O |\n";
cout<<"\t\t ------------------------\n";
fstream f;
f.open("studetails.dat",ios::in|ios::binary);
while(!f.eof())
{
f.read((char*)&obj,sizeof(obj));
if(obj.admno==rn)
{
break;
}
}
gotoxy(25,8);
cout<<"ADMIN NO : "<<obj.admno;
gotoxy(25,9);
cout<<"NAME : "<<obj.name;
gotoxy(25,10);
cout<<"DATE OF BIRTH : "<<obj.dob;
gotoxy(25,11);
cout<<"FATHER NAME : "<<obj.father_name;
gotoxy(25,12);
cout<<"MOTHER NAME : "<<obj.mother_name;
gotoxy(25,13);
cout<<"ADDRESS : "<<obj.address;
gotoxy(25,14);
cout<<"CONTACT : "<<obj.mobile;
gotoxy(25,15);
cout<<"NATIONALITY : "<<obj.nationality;

/**************************************************
| SEARCH FUNCTION (TO SEARCH DETAILS) |
***************************************************/

void student::search()
{

int found=0;
int rn;
gotoxy(20,9);
cout<<"ENTER ADMISSION NUMBER OF STUDENT: ";
cin>>rn;
fstream f;
f.open("studetails.dat",ios::in|ios::binary);
while(!f.eof())
{
f.read((char*)&obj,sizeof(obj));
if(obj.admno==rn)
{
obj.display();
found=1;
} break;
}
if(found ==0)
textcolor(12);cprintf("\nAdmission number not found!!");
f.close();
}

/***************************************************
| MODIFY FUNCTION (TO MODIFY DETAILS) |
****************************************************/

void student::modify()
{
char newname[80],newfather[80];
char newmother[80],newaddress[120];
char newdob[12],newcontact[10];
clrscr();
cout<<"\t\t ----------------------------\n";
cout<<"\t\t| M O D I F Y S T U D E N T |\n";
cout<<"\t\t ----------------------------\n";
fstream f("studetails.text",ios::in|ios::out|ios::binary);
int rn;
cout<<"\tENTER THE ADMISSION NO : ";
cin>>rn;
gotoxy(20,24);
cout<<" < . > to retain the values ";
while(!f.eof())
{
f.read((char*)&obj,sizeof(obj));
if(obj.admno==rn)
{
gotoxy(10,8);
cout<<"ADMIN NO : "<<obj.admno;
gotoxy(10,9);
cout<<"NAME : "<<obj.name;
gotoxy(10,10);
cout<<"DATE OF BIRTH : "<<obj.dob;
gotoxy(10,11);
cout<<"FATHER NAME : "<<obj.father_name;
gotoxy(10,12);
cout<<"MOTHER NAME : "<<obj.mother_name;
gotoxy(10,13);
cout<<"ADDRESS : "<<obj.address;
gotoxy(10,14);
cout<<"CONTACT : "<<obj.mobile;
gotoxy(10,15);
cout<<"NATIONALITY : "<<obj.nationality;
gotoxy(50,9);
gets(newname);
gotoxy(50,10);
gets(newfather);
gotoxy(50,11);
gets(newmother);
gotoxy(50,12);
gets(newaddress);
gotoxy(50,13);
gets(newcontact);
if(strcmp(newname,".")!=0)
{
strcpy(obj.name,newname);
}
if(strcmp(newfather,".")!=0)
{
strcpy(obj.father_name,newfather);
}
if(strcmp(newmother,".")!=0)
{
strcpy(obj.mother_name,newmother);
}
if(strcmp(newaddress,".")!=0)
{
strcpy(obj.address,newaddress);
}
if(strcmp(newcontact,".")!=0)
{
strcpy(obj.mobile,newcontact);
}

char ch;
gotoxy(10,20);
cout<<"Want to Apply the Changes (y/n)";
cin>>ch;
if(ch=='y'||ch=='Y')
{
f.seekp(f.tellg() - sizeof(obj));
f.write((char*)&obj,sizeof(obj));
f.close();
gotoxy(10,21);
cout<<"MODIFIED";
break;
}
}
getch();
}
}

/*************************************************************
| END OF PROGRAM |
**************************************************************/
OUTPUT

You might also like