Project Report Model - CS
Project Report Model - CS
NAGERCOIL
PROJECT REPORT
COMPUTER SCIENCE
2024-2025
NAME : V.MUGUNDHAN
STANDARD : XII B
ROLL NO :
TITLE : XXXXXX
1
Project Report on
Library Management System
Submitted to
CBSE in partial fulfillment of
AISSE
by
V.Mugundhan
Rollno - XXXXX
Under guidance of
Mr. C. Justin Raj
PGT Computer Science
2
Certificate
This student has done this project with his own effort
and guidance of the Computer Teacher.
3
Acknowledgement
Primarily I would thank god for being able to complete this project with
success. Then I would like to thank my Principal Sri. ASHISH KUMAR
JOSHI and Computer science Teacher Mr. C. Justin Raj, whose valuable
guidance has been the ones that helped me patch this project and make it full
proof success his suggestions and his instructions has served as the major
contributor towards the completion of the project.
Then I would like to thank my parents and friends who have helped me with
their valuable suggestions and guidance has been helpful in various phases of
the completion of the project.
Last but not the least I would like to thank my classmates who have helped me
a lot.
4
Declaration
I further declare that this work is not produced anywhere else for
any purpose.
Name : V.MUGUNDHAN
Roll No. :
Place : NAGERCOIL
Date : 15/1/2025
5
Contents
Introduction 6
System Analysis 7
System Design 8
System Development 9
Implementation 10
Coding 11
Output Screen 33
Conclusion 36
Bibliography 37
6
Introduction
7
System Analysis
This is the period when the development team collects information from
user’s management and data processing personnel regarding the proposed
system, the environment in which it will operate then analyses this information
to understand, specify and documents require specifications.
Outputs to be produced.
Processes to be performed.
Interface to be provided.
This document becomes the inputs for the next phrase in the
development cycle system design. Since user needs are forever changing and
expanding, system analysis can continue indefinitely at a great expenditure of
time and effort.
8
System Design
The system design phase is critical in transforming the theoretical and
analytical foundations of the project into a tangible, functional structure. This
phase focuses on how the data will be processed, stored, and presented to users.
It involves designing outputs, inputs, files, and processing workflows that meet
the project's objectives.
Output design
Input design
File design
Processing design
In this phrase firstly, the output’s designed keeping in mind how the
output is to be produced and in what format. Secondly, input data and files are
designed to meet the requirements of the proposed output. The processing
design involves program construction and testing. Finally, details of the entire
designing system justification details and estimated impact on the users and
organization are documented and evaluated by management as a step towards
implementation.
9
System Development
Software specification:
Hardware specification:
System - PC
Processor - Intel I3
RAM - 4 GB
HDD - 500 GB
10
Implementation
11
Coding
//***************************************************************
//****************************************************************
#include<fstream.h>
#include<conio.h>
#include<stdio.h>
#include<process.h>
#include<string.h>
#include<iomanip.h>
//***************************************************************
//****************************************************************
class book
char bno[6];
char bname[50];
char aname[20];
public:
void create_book()
12
{
cin>>bno;
gets(bname);
gets(aname);
cout<<"\n\n\nBook Created..";
void show_book()
puts(bname);
puts(aname);
void modify_book()
gets(bname);
gets(aname);
13
char* retbno()
return bno;
void report()
{cout<<bno<<setw(30)<<bname<<setw(30)<<aname<<endl;}
class student
char admno[6];
char name[20];
char stbno[6];
int token;
public:
void create_student()
clrscr();
cin>>admno;
gets(name);
token=0;
14
stbno[0]='/0';
void show_student()
puts(name);
if(token==1)
cout<<"\nBook No "<<stbno;
void modify_student()
gets(name);
char* retadmno()
return admno;
char* retstbno()
return stbno;
15
}
int rettoken()
return token;
void addtoken()
{token=1;}
void resettoken()
{token=0;}
strcpy(stbno,t);
void report()
{cout<<"\t"<<admno<<setw(20)<<name<<setw(10)<<token<<endl;}
//***************************************************************
//****************************************************************
fstream fp,fp1;
book bk;
student st;
//***************************************************************
16
//****************************************************************
void write_book()
char ch;
fp.open("book.dat",ios::out|ios::app);
do
clrscr();
bk.create_book();
fp.write((char*)&bk,sizeof(book));
cin>>ch;
}while(ch=='y'||ch=='Y');
fp.close();
void write_student()
char ch;
fp.open("student.dat",ios::out|ios::app);
do
st.create_student();
fp.write((char*)&st,sizeof(student));
cin>>ch;
}while(ch=='y'||ch=='Y');
17
fp.close();
//***************************************************************
//****************************************************************
cout<<"\nBOOK DETAILS\n";
int flag=0;
fp.open("book.dat",ios::in);
while(fp.read((char*)&bk,sizeof(book)))
if(strcmpi(bk.retbno(),n)==0)
bk.show_book();
flag=1;
fp.close();
if(flag==0)
getch();
18
void display_sps(char n[])
cout<<"\nSTUDENT DETAILS\n";
int flag=0;
fp.open("student.dat",ios::in);
while(fp.read((char*)&st,sizeof(student)))
if((strcmpi(st.retadmno(),n)==0))
st.show_student();
flag=1;
fp.close();
if(flag==0)
getch();
//***************************************************************
//****************************************************************
void modify_book()
char n[6];
int found=0;
clrscr();
19
cout<<"\n\n\tMODIFY BOOK REOCORD.... ";
cin>>n;
fp.open("book.dat",ios::in|ios::out);
if(strcmpi(bk.retbno(),n)==0)
bk.show_book();
bk.modify_book();
int pos=-1*sizeof(bk);
fp.seekp(pos,ios::cur);
fp.write((char*)&bk,sizeof(book));
found=1;
fp.close();
if(found==0)
getch();
void modify_student()
char n[6];
20
int found=0;
clrscr();
cin>>n;
fp.open("student.dat",ios::in|ios::out);
if(strcmpi(st.retadmno(),n)==0)
st.show_student();
st.modify_student();
int pos=-1*sizeof(st);
fp.seekp(pos,ios::cur);
fp.write((char*)&st,sizeof(student));
found=1;
fp.close();
if(found==0)
getch();
21
//***************************************************************
//****************************************************************
void delete_student()
char n[6];
int flag=0;
clrscr();
cout<<"\n\n\n\tDELETE STUDENT...";
cout<<"\n\nEnter The admission no. of the Student You Want To Delete : ";
cin>>n;
fp.open("student.dat",ios::in|ios::out);
fstream fp2;
fp2.open("Temp.dat",ios::out);
fp.seekg(0,ios::beg);
while(fp.read((char*)&st,sizeof(student)))
if(strcmpi(st.retadmno(),n)!=0)
fp2.write((char*)&st,sizeof(student));
else
flag=1;
fp2.close();
22
fp.close();
remove("student.dat");
rename("Temp.dat","student.dat");
if(flag==1)
else
getch();
void delete_book()
char n[6];
clrscr();
cout<<"\n\nEnter The Book no. of the Book You Want To Delete : ";
cin>>n;
fp.open("book.dat",ios::in|ios::out);
fstream fp2;
fp2.open("Temp.dat",ios::out);
fp.seekg(0,ios::beg);
while(fp.read((char*)&bk,sizeof(book)))
if(strcmpi(bk.retbno(),n)!=0)
fp2.write((char*)&bk,sizeof(book));
23
fp2.close();
fp.close();
remove("book.dat");
rename("Temp.dat","book.dat");
getch();
//***************************************************************
//****************************************************************
void display_alls()
clrscr();
fp.open("student.dat",ios::in);
if(!fp)
getch();
return;
cout<<"\n\n\t\tSTUDENT LIST\n\n";
cout<<"==================================================\n";
cout<<"==================================================\n";
while(fp.read((char*)&st,sizeof(student)))
24
{
st.report();
fp.close();
getch();
//***************************************************************
//****************************************************************
void display_allb()
clrscr();
fp.open("book.dat",ios::in);
if(!fp)
getch();
return;
cout<<"\n\n\t\tBook LIST\n\n";
cout<<"================================================\n";
cout<<"==================================================\n";
25
while(fp.read((char*)&bk,sizeof(book)))
bk.report();
fp.close();
getch();
//***************************************************************
//****************************************************************
void book_issue()
char sn[6],bn[6];
int found=0,flag=0;
clrscr();
cin>>sn;
fp.open("student.dat",ios::in|ios::out);
fp1.open("book.dat",ios::in|ios::out);
if(strcmpi(st.retadmno(),sn)==0)
found=1;
if(st.rettoken()==0)
26
{
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));
if(flag==0)
else
27
if(found==0)
getch();
fp.close();
fp1.close();
//***************************************************************
//****************************************************************
void book_deposit()
char sn[6],bn[6];
int found=0,flag=0,day,fine;
clrscr();
cin>>sn;
fp.open("student.dat",ios::in|ios::out);
fp1.open("book.dat",ios::in|ios::out);
if(strcmpi(st.retadmno(),sn)==0)
found=1;
if(st.rettoken()==1)
28
while(fp1.read((char*)&bk,sizeof(book))&& flag==0)
if(strcmpi(bk.retbno(),st.retstbno())==0)
bk.show_book();
flag=1;
cin>>day;
if(day>15)
fine=(day-15)*1;
st.resettoken();
int pos=-1*sizeof(st);
fp.seekp(pos,ios::cur);
fp.write((char*)&st,sizeof(student));
if(flag==0)
else
29
if(found==0)
getch();
fp.close();
fp1.close();
//***************************************************************
// INTRODUCTION FUNCTION
//****************************************************************
void intro()
clrscr();
gotoxy(35,11);
cout<<"LIBRARY";
gotoxy(35,14);
cout<<"MANAGEMENT";
gotoxy(35,17);
cout<<"SYSTEM";
getch();
//***************************************************************
//****************************************************************
30
void admin_menu()
clrscr();
int ch2;
cout<<"\n\n\n\tADMINISTRATOR MENU";
cin>>ch2;
switch(ch2)
case 1: clrscr();
write_student();break;
case 2: display_alls();break;
case 3:
char num[6];
clrscr();
31
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();
cin>>num;
display_spb(num);
break;
case 9: modify_book();break;
default:cout<<"\a";
admin_menu();
//***************************************************************
//****************************************************************
void main()
32
{
char ch;
intro();
do
clrscr();
cout<<"\n\n\n\tMAIN MENU";
cout<<"\n\n\t04. EXIT";
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');
33
//***************************************************************
// END OF PROJECT
//***************************************************************
Output screen
34
35
36
Conclusion
The project has been successfully completed and has met all the deadlines and
mission objectives that have been initially put forth. The program has been able
to fulfill all the preset requirements and has been executed successfully.
The program has been run several times and its reliability has been
measured to be satisfactory.
37
Bibliography
BOOKS:
INTERNET SOURCES:
1. www.koders.com
2. www.happycodings.com
38
3. www.cplusplus.com
4. www.mycplus.com
39