Computer Project XII
-
Upload
saikat-datta -
Category
Documents
-
view
249 -
download
0
Transcript of Computer Project XII
-
8/3/2019 Computer Project XII
1/36
1
COMPUTER PROJECT
ON
SYSTEM ANALYSIS
PROJECT TITLE:
LIBRARY MANAGEMENT SYSTEM
To be submitted to the Central Board of Secondary
Education in partial fulfilment for Computer
Science.
PROJECT AISSCE
2011-12
By
Saikat Datta
Class-XII, Sec-A
Roll No.-09
Regn. No.-5087
-
8/3/2019 Computer Project XII
2/36
2
CERTIFICATE
This is to certify that Mr. Saikat Datta of Class 12 , Sec A
having Roll No. 09 of Modern English School, Kahilipara has
successfully completed his Computer Project on LIBRARY
MANAGEMENT SYSTEM for the AISSCE as prescribed byCBSE in the year 2011-2012
Date:__________________
Signature of Signature of
Principal External
Signature of Teacher In-Charge
-
8/3/2019 Computer Project XII
3/36
3
ACKNOWLEDGEMENT
I extend my hearty thanks to Mr. NILKAMAL DEV
SHARMA, computer teacher, MODERN ENGLISH
SCHOOL, who guided me for successful completion ofthis project. I take this opportunity to express my deep
sense of gratitude for his invaluable guidance, constant
encouragement, constructive comments, sympatheticattitude and immense motivation which has sustained my
efforts at all stages of this project work.
I wish to express my deep gratitude and sincere thanks to
the Principal Mr. PANKAJ DAS, MODERN ENGLISHSCHOOL, for the facilities that he provided for this
project.
I cant forget to offer my sincere thanks to my classmates
who helped and supported me to carry out this projectwork successfully and also my family members for their
valuableadvice and support, which I received from them
time to time.
-
8/3/2019 Computer Project XII
4/36
4
CONTENT
TOPIC PAGE
1. Aim......................................... 52. Introduction............................ 63. Requirements
and Installation Procedure...... 7
4. Header Files............................ 85. Source Code............................ 9-286. Output...................................... 29-347. Conclusion............................... 358. Bibliography............................. 36
-
8/3/2019 Computer Project XII
5/36
5
AIM
A program to store the library
books record and to perform
the modification, insertion,deletion, searching the
records.
-
8/3/2019 Computer Project XII
6/36
6
INTRODUCTION
Maintaining a store details in a copy by an
individual is really a tedious job that one
can find. Moreover one find it difficult to
evaluate the record i.e. to upgrade or
modify the record in time as it requiresplenty of time to do that. This in todays
world that is rapidly changing day by day,
this act of maintaining date in a copy or
paper is really an obsolete one.
Hence need arises for an applicationwhich provides an interference which is
very flexible and easy to interact. An
application with a friendly interface helps
in maintaining and recording a large
number of recording a large number of
records.
Thus, this application helps the user in a
library to easily manage the library
details.
-
8/3/2019 Computer Project XII
7/36
7
TOOLS REQUIRED
Hardware:RAM: 256MB
HDD: 40 GB
Processor: Pentium 4
Software:
Windows XP/98/2000
Turbo C++
MS Word
MS Paint
Corel Draw Graphics Suite
INSTALLATION PROCEDURE
The program can be opened from a location of the
computer from the DUP_PRO.CPP or
DUP_PRO.EXE. There is no need for any kind of
installation.
-
8/3/2019 Computer Project XII
8/36
8
HEADER FILES
1. iostream.h2. iomanip.h3.conio.h4.stdio.h5.fstream.h6.process.h7.
string.h
-
8/3/2019 Computer Project XII
9/36
9
SOURCE CODE#include
#include
#include
#include
#include
#include
class book
{
char bno[6];
char bname[50];
char aname[20];
public:
void create_book()
{
cout
-
8/3/2019 Computer Project XII
10/36
10
void show_book()
{
cout
-
8/3/2019 Computer Project XII
11/36
11
class student
{
char admno[6];
char name[20];
char stbno[6];
int token;
public:
void create_student()
{
clrscr();
cout
-
8/3/2019 Computer Project XII
12/36
12
void show_student()
{
cout
-
8/3/2019 Computer Project XII
13/36
13
void addtoken()
{token=1;}
void resettoken()
{token=0;}
void getstbno(char t[])
{
strcpy(stbno,t);
}
void report()
{cout
-
8/3/2019 Computer Project XII
14/36
14
void write_student()
{
char ch;
fp.open("student.dat",ios::out|ios::app);
do
{
st.create_student();
fp.write((char*)&st,sizeof(student));
coutch;
}while(ch=='y'||ch=='Y');
fp.close();
}
void display_spb(char n[])
{
cout
-
8/3/2019 Computer Project XII
15/36
15
fp.close();
if(flag==0)
cout
-
8/3/2019 Computer Project XII
16/36
16
void modify_book()
{
char n[6];
int found=0;
clrscr();
cout
-
8/3/2019 Computer Project XII
17/36
17
void modify_student()
{
char n[6];
int found=0;
clrscr();
cout
-
8/3/2019 Computer Project XII
18/36
18
void delete_student()
{
char n[6];
int flag=0;
clrscr();
cout
-
8/3/2019 Computer Project XII
19/36
19
void delete_book()
{
char n[6];
clrscr();
cout
-
8/3/2019 Computer Project XII
20/36
20
void display_alls()
{
clrscr();
fp.open("student.dat",ios::in);
if(!fp)
{
cout
-
8/3/2019 Computer Project XII
21/36
21
if(!fp)
{
cout
-
8/3/2019 Computer Project XII
22/36
22
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)
{
coutbn;
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
-
8/3/2019 Computer Project XII
23/36
23
}
else
cout
-
8/3/2019 Computer Project XII
24/36
24
{
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;
coutday;
if(day>15)
{
fine=(day-15)*1;
cout
-
8/3/2019 Computer Project XII
25/36
25
else
cout
-
8/3/2019 Computer Project XII
26/36
26
void admin_menu()
{
clrscr();
int ch2;
cout
-
8/3/2019 Computer Project XII
27/36
27
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();
coutnum;
display_spb(num);
break;
}
case 9: modify_book();break;
case 10: delete_book();break;
case 11: return;
default:cout
-
8/3/2019 Computer Project XII
28/36
28
void main()
{
char ch;
intro();
do
{
clrscr();
cout
-
8/3/2019 Computer Project XII
29/36
29
OUTPUT
-
8/3/2019 Computer Project XII
30/36
30
Selecting 1 from Main Menu
Selecting 2 from Main Menu
-
8/3/2019 Computer Project XII
31/36
31
Selecting 3 from Main Menu
Selecting 4 from Main Menu exits the program
-
8/3/2019 Computer Project XII
32/36
32
From Administrators Menu
Selecting 1
Selecting 2
Selecting 3
Selecting 4
-
8/3/2019 Computer Project XII
33/36
33
Selecting 5
Selecting 6
Selecting 7
Selecting 8
-
8/3/2019 Computer Project XII
34/36
34
Selecting 9
Selecting 10
-
8/3/2019 Computer Project XII
35/36
35
CONCLUSION
The project named LIBRARRY MANAGEMENT
SYSTEM has been successfully completed.
Ensuring that this is the real depiction of
LIBRARY MANAGEMENT SYSTEM.
-
8/3/2019 Computer Project XII
36/36
36
BIBLIOGRAPHY
Computer Science Class XII
-Sumita Arora