Computer Science: Library Management Project Report
Computer Science: Library Management Project Report
SCIENCE
LIBRARY
MANAGEMENT
PROJECT REPORT
SUBMITTED BY:
BALENDU-CHANDRA-
SHEKHAR CLASS-XIITH B
ROLL NO-9746981
CERTIFICATE
Certified that this is a bonafide record of the project work in
COMPUTER SCIENCE
Submitted to the Central Board of Secondary Education in partial fulfillment
of Senior Secondary Examination.
---------------- -----------------
Teacher Principal
DECLARATION
I, BALENDU-CHANDRA-SHEKHAR, hereby declare
that this project work entitled “LIBRARY MANAGEMENT”
submitted to DELHI TAMIL EDUCATION ASSOCIATION
Senior Secondary SCHOOL, MANDIR MARG , New Delhi-
110001, is original record work done by me under the
supervision and guidance of MR. ROHIT SIR, Department of
Computer Science.
Countersigned By:
MR.ROHIT SIR
Teacher in Charge
Department of Computer Science
DELHI TAMIL EDUCATION ASSOCIATION SENIOR SECONDARY SCHOOL,
MANDIR MARG , New Delhi-110001
Place: MANDIR MARG
Date:
LIBRARY MANAGEMENT
Submitted to Central Board of Secondary Education in
partial fulfillment of the requirements for the Senior
Secondary Examination
BY: BALENDU-CHANDRA-SHEKHAR
(XII Science)
I have taken efforts in this project. However, it would not have been
possible without the kind support and help of many individuals. I
would like to extend my sincere thanks to all of them.
CONTENTS
1. OVERVIEW OF C++
2. INTRODUNCTION
3. SYSTEM REQUIREMENTS
4. AIM OF THE PROJECT
5. SOURCE CODE
6. SAMPLE OUTPUT
7. BIBLIOGRAPHY
OVERVIEW OF C++
In fact every little task which was done manually by library staff
has been fully automated so as to smoothen the working of
library along with bringing transparency in its functioning and
improving trust between the students and the management.
SYSTEM REQUIREMENTS
HARDWARE REQUIREMENTS
Processor: Intel Pentium IV
RAM: 512 MB
Hard Disk: 40GB
SOFTWARE REQUIREMENTS
Operating System: Windows 98, 2000, XP, 7, 8, 8.1, 10
Tools: Turbo C++ 3.0
Technologies: DOS 7.0
AIM OF THE PROJECT
cout<<"=========================================================================\n";
cout<<"Book Number"<<setw(20)<<"Book Name"<<setw(25)<<"Author\n";
cout<<"=========================================================================\n";
while(fp.read((char*)&bk,sizeof(book)))
{
bk.report();
}
fp.close();
getch();
}
//***************************************************************
// function to issue book
//****************************************************************
void book_issue()
{
char sn[6],bn[6];
int found=0,flag=0;
clrscr();
cout<<"\n\nBOOK ISSUE ...";
cout<<"\n\n\tEnter The student's admission no.";
cin>>sn;
fp.open("student.dat",ios::in|ios::out);
fp1.open("book.dat",ios::in|ios::out);
while(fp.read((char*)&st,sizeof(student)) && found==0)
{
if(strcmpi(st.retadmno(),sn)==0)
{
found=1;
if(st.rettoken()==0)
{
cout<<"\n\n\tEnter the book no. ";
cin>>bn;
while(fp1.read((char*)&bk,sizeof(book))&& flag==0)
{
if(strcmpi(bk.retbno(),bn)==0)
{
bk.show_book();
flag=1;
st.addtoken();
st.getstbno(bk.retbno());
int pos=-1*sizeof(st);
fp.seekp(pos,ios::cur);
fp.write((char*)&st,sizeof(student));
cout<<"\n\n\t Book issued successfully\n\nPlease Note:
Write the current date in backside of your book and
submit within 15 days fine Rs. 1 for each day after
15 days period";
}
}
if(flag==0)
cout<<"Book no does not exist";
}
else
cout<<"You have not returned the last book ";
}
}
if(found==0)
cout<<"Student record not exist...";
getch();
fp.close();
fp1.close();
}
//***************************************************************
// function to deposit book
//****************************************************************
void book_deposit()
{
char sn[6],bn[6];
int found=0,flag=0,day,fine;
clrscr();
cout<<"\n\nBOOK DEPOSIT ...";
cout<<"\n\n\tEnter The student’s admission no.";
cin>>sn;
fp.open("student.dat",ios::in|ios::out);
fp1.open("book.dat",ios::in|ios::out);
while(fp.read((char*)&st,sizeof(student)) && found==0)
{
if(strcmpi(st.retadmno(),sn)==0)
{
found=1;
if(st.rettoken()==1)
{
while(fp1.read((char*)&bk,sizeof(book))&& flag==0)
{
if(strcmpi(bk.retbno(),st.retstbno())==0)
{
bk.show_book();
flag=1;
cout<<"\n\nBook deposited in no. of days";
cin>>day;
if(day>15)
{
fine=(day-15)*1;
cout<<"\n\nFine has to deposited Rs. "<<fine;
}
st.resettoken();
int pos=-1*sizeof(st);
fp.seekp(pos,ios::cur);
fp.write((char*)&st,sizeof(student));
cout<<"\n\n\t Book deposited successfully";
}
}
if(flag==0)
cout<<"Book no does not exist";
}
else
cout<<"No book is issued..please check!!";
}
}
if(found==0)
cout<<"Student record not exist...";
getch();
fp.close();
fp1.close();
}
//***************************************************************
// INTRODUCTION FUNCTION
//****************************************************************
void intro()
{
clrscr();
gotoxy(35,11);
cout<<"LIBRARY";
gotoxy(35,12);
cout<<"MANAGEMENT";
gotoxy(35,13);
cout<<"SYSTEM";
cout<<"\n\nMADE BY : ANAND BABURAJAN";
cout<<"\n\nSCHOOL : BLOOMING BUDS BETHANIA";
getch();
}
//***************************************************************
// ADMINISTRATOR MENU FUNCTION
//****************************************************************
void admin_menu()
{
clrscr();
int ch2;
cout<<"\n\n\n\tADMINISTRATOR MENU";
cout<<"\n\n\t1.CREATE STUDENT RECORD";
cout<<"\n\n\t2.DISPLAY ALL STUDENTS RECORD";
cout<<"\n\n\t3.DISPLAY SPECIFIC STUDENT RECORD ";
cout<<"\n\n\t4.MODIFY STUDENT RECORD";
cout<<"\n\n\t5.DELETE STUDENT RECORD";
cout<<"\n\n\t6.CREATE BOOK ";
cout<<"\n\n\t7.DISPLAY ALL BOOKS ";
cout<<"\n\n\t8.DISPLAY SPECIFIC BOOK ";
cout<<"\n\n\t9.MODIFY BOOK ";
cout<<"\n\n\t10.DELETE BOOK ";
cout<<"\n\n\t11.BACK TO MAIN MENU";
cout<<"\n\n\tPlease Enter Your Choice (1-11) ";
cin>>ch2;
switch(ch2)
{
case 1: clrscr();
write_student();break;
case 2: display_alls();break;
case 3:
char num[6];
clrscr();
cout<<"\n\n\tPlease Enter The Admission No. ";
cin>>num;
display_sps(num);
break;
case 4: modify_student();break;
case 5: delete_student();break;
case 6: clrscr();
write_book();break;
case 7: display_allb();break;
case 8: {
char num[6];
clrscr();
cout<<"\n\n\tPlease Enter The book No. ";
cin>>num;
display_spb(num);
break;
}
case 9: modify_book();break;
case 10: delete_book();break;
case 11: return;
default:cout<<"\a";
}
admin_menu();
}
//***************************************************************
// THE MAIN FUNCTION OF PROGRAM
//****************************************************************
void main()
{
char ch;
intro();
do
{
clrscr();
cout<<"\n\n\n\tMAIN MENU";
cout<<"\n\n\t01. BOOK ISSUE";
cout<<"\n\n\t02. BOOK DEPOSIT";
cout<<"\n\n\t03. ADMINISTRATOR MENU";
cout<<"\n\n\t04. EXIT";
cout<<"\n\n\tPlease Select Your Option (1-4) ";
ch=getche();
switch(ch)
{
case '1':clrscr();
book_issue();
break;
case '2':book_deposit();
break;
case '3':admin_menu();
break;
case '4':exit(0);
default :cout<<"\a";
}
}while(ch!='4');
}
//***************************************************************
// END OF PROJECT
//***************************************************************
SAMPLE OUTPUT
BIBLIOGRAPHY
Websites:
https://en.wikipedia.org/wiki/C%2B%2B
http://www.icbse.com/
Books:
Sumita Arora (Class XII) Textbook
Sumita Arora (Class XI) Textbook
Together with C++
BALENDU-CHANRA SHEKHAR