0% found this document useful (0 votes)
21 views

Project Report Model - CS

Uploaded by

devakivivek84
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views

Project Report Model - CS

Uploaded by

devakivivek84
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 39

PM SHRI KENDRIYA VIDYALAYA

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 is to certify that this project “ xxxxxxxxxxxxxxxxxxxxx”


is a bonafide record done by V.MUGUNDHAN, Roll no.
zzzzz is a partial fulfillment of Class XII, COMPUTER
SCIENCE Practical Examination.

This student has done this project with his own effort
and guidance of the Computer Teacher.

Teacher in Charge Principal

Internal Examiner External Examiner

3
Acknowledgement

In the accomplishment of this project successfully, many people have best


owned upon me their blessings and the heart pledged support, this time I am
utilizing to thank all the people who have been concerned with project.

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

This is to declare that the project entitled “xxxxxxxxxxxxxxxx

xxxxxxxxxxxxxxxxxxx” is the original work done by me for the

partial fulfillment of AISE Class XII COMPUTER SCIENCE Exam.

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

Index Page No.

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.

These specifications state:

Goals and objectives of the proposed system.

Fundamental actions that must take place in the software.

Outputs to be produced.

Processes to be performed.

Interface to be provided.

Performance requirement to be met.

Organizational and other constraints to be met.

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.

The requirement of the user must be detailed and complete so that no


misunderstanding can arise during the development cycle. User specifications
determined by the shape, strength, capability and even the life of the product.
They serve as a contract between users and system development.

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.

The design phrase involves designing of various things:

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

Program namely the list of the instructions to be existed by the computer.


The electronic circuit is the system in building the computer that excites the
software is known as the hardware of the computer. The minimum hardware
and the software requirement for the proposed system is discussed below:

Software specification:

Operating System : Windows 10 or higher

Front end : Python

Back end : CSV file

Hardware specification:

System - PC

Processor - Intel I3

Processing speed - 2 GHz

Display type - VGA

RAM - 4 GB

HDD - 500 GB

10
Implementation

Implementation phrase is mainly concerned with user training site


preparations and file conversions. It also involves final testing of the system.
These are design phrase. This is les creative than system design.

Once the system is implemented, evaluation and maintenance begin. Like


any system, there is an ageing process that requires periodic maintenance of
hardware and software. If the new system is in consisted with the design
specifications, then changes have to be made. Hardware also requires periodic
maintenance to keep in time with design specifications. A post implementation
review is an evaluation of a system in terms of the extent to which the system
accomplishes stated objectives and actual project costs exceed initial estimates.

11
Coding
//***************************************************************

// HEADER FILE USED IN PROJECT

//****************************************************************

#include<fstream.h>

#include<conio.h>

#include<stdio.h>

#include<process.h>

#include<string.h>

#include<iomanip.h>

//***************************************************************

// CLASS USED IN PROJECT

//****************************************************************

class book

char bno[6];

char bname[50];

char aname[20];

public:

void create_book()

12
{

cout<<"\nNEW BOOK ENTRY...\n";

cout<<"\nEnter The book no.";

cin>>bno;

cout<<"\n\nEnter The Name of The Book ";

gets(bname);

cout<<"\n\nEnter The Author's Name ";

gets(aname);

cout<<"\n\n\nBook Created..";

void show_book()

cout<<"\nBook no. : "<<bno;

cout<<"\nBook Name : ";

puts(bname);

cout<<"Author Name : ";

puts(aname);

void modify_book()

cout<<"\nBook no. : "<<bno;

cout<<"\nModify Book Name : ";

gets(bname);

cout<<"\nModify Author's Name of Book : ";

gets(aname);

13
char* retbno()

return bno;

void report()

{cout<<bno<<setw(30)<<bname<<setw(30)<<aname<<endl;}

}; //class ends here

class student

char admno[6];

char name[20];

char stbno[6];

int token;

public:

void create_student()

clrscr();

cout<<"\nNEW STUDENT ENTRY...\n";

cout<<"\nEnter The admission no. ";

cin>>admno;

cout<<"\n\nEnter The Name of The Student ";

gets(name);

token=0;

14
stbno[0]='/0';

cout<<"\n\nStudent Record Created..";

void show_student()

cout<<"\nAdmission no. : "<<admno;

cout<<"\nStudent Name : ";

puts(name);

cout<<"\nNo of Book issued : "<<token;

if(token==1)

cout<<"\nBook No "<<stbno;

void modify_student()

cout<<"\nAdmission no. : "<<admno;

cout<<"\nModify Student Name : ";

gets(name);

char* retadmno()

return admno;

char* retstbno()

return stbno;

15
}

int rettoken()

return token;

void addtoken()

{token=1;}

void resettoken()

{token=0;}

void getstbno(char t[])

strcpy(stbno,t);

void report()

{cout<<"\t"<<admno<<setw(20)<<name<<setw(10)<<token<<endl;}

}; //class ends here

//***************************************************************

// global declaration for stream object, object

//****************************************************************

fstream fp,fp1;

book bk;

student st;

//***************************************************************

// function to write in file

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));

cout<<"\n\nDo you want to add more record..(y/n?)";

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));

cout<<"\n\ndo you want to add more record..(y/n?)";

cin>>ch;

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

17
fp.close();

//***************************************************************

// function to read specific record from file

//****************************************************************

void display_spb(char n[])

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)

cout<<"\n\nBook does not exist";

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)

cout<<"\n\nStudent does not exist";

getch();

//***************************************************************

// function to modify record of file

//****************************************************************

void modify_book()

char n[6];

int found=0;

clrscr();

19
cout<<"\n\n\tMODIFY BOOK REOCORD.... ";

cout<<"\n\n\tEnter The book no. of The book";

cin>>n;

fp.open("book.dat",ios::in|ios::out);

while(fp.read((char*)&bk,sizeof(book)) && found==0)

if(strcmpi(bk.retbno(),n)==0)

bk.show_book();

cout<<"\nEnter The New Details of book"<<endl;

bk.modify_book();

int pos=-1*sizeof(bk);

fp.seekp(pos,ios::cur);

fp.write((char*)&bk,sizeof(book));

cout<<"\n\n\t Record Updated";

found=1;

fp.close();

if(found==0)

cout<<"\n\n Record Not Found ";

getch();

void modify_student()

char n[6];

20
int found=0;

clrscr();

cout<<"\n\n\tMODIFY STUDENT RECORD... ";

cout<<"\n\n\tEnter The admission no. of The student";

cin>>n;

fp.open("student.dat",ios::in|ios::out);

while(fp.read((char*)&st,sizeof(student)) && found==0)

if(strcmpi(st.retadmno(),n)==0)

st.show_student();

cout<<"\nEnter The New Details of student"<<endl;

st.modify_student();

int pos=-1*sizeof(st);

fp.seekp(pos,ios::cur);

fp.write((char*)&st,sizeof(student));

cout<<"\n\n\t Record Updated";

found=1;

fp.close();

if(found==0)

cout<<"\n\n Record Not Found ";

getch();

21
//***************************************************************

// function to delete record of file

//****************************************************************

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)

cout<<"\n\n\tRecord Deleted ..";

else

cout<<"\n\nRecord not found";

getch();

void delete_book()

char n[6];

clrscr();

cout<<"\n\n\n\tDELETE BOOK ...";

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");

cout<<"\n\n\tRecord Deleted ..";

getch();

//***************************************************************

// function to display all students list

//****************************************************************

void display_alls()

clrscr();

fp.open("student.dat",ios::in);

if(!fp)

cout<<"ERROR!!! FILE COULD NOT BE OPEN ";

getch();

return;

cout<<"\n\n\t\tSTUDENT LIST\n\n";

cout<<"==================================================\n";

cout<<"\tAdmission No."<<setw(10)<<"Name"<<setw(20)<<"Book Issued\n";

cout<<"==================================================\n";

while(fp.read((char*)&st,sizeof(student)))

24
{

st.report();

fp.close();

getch();

//***************************************************************

// function to display Books list

//****************************************************************

void display_allb()

clrscr();

fp.open("book.dat",ios::in);

if(!fp)

cout<<"ERROR!!! FILE COULD NOT BE OPEN ";

getch();

return;

cout<<"\n\n\t\tBook LIST\n\n";

cout<<"================================================\n";

cout<<"Book Number"<<setw(20)<<"Book Name"<<setw(25)<<"Author\n";

cout<<"==================================================\n";

25
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)

26
{

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\nBook 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 ";

27
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)

28
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!!";

29
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,14);

cout<<"MANAGEMENT";

gotoxy(35,17);

cout<<"SYSTEM";

cout<<"\n\nMADE BY : K.NAMBI RAMANUJAM";

cout<<"\n\nSCHOOL : KENDRIYA VIDYALAYA VIJAYANARAYANAM ";

getch();

//***************************************************************

// ADMINISTRATOR MENU FUNCTION

//****************************************************************

30
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. ";

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();

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()

32
{

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');

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:

1. COMPUTER SCIENCE: A Textbook by Sumita Arora

2. NCERT Book for Class 12 COMPUTER SCIENCE

3. COMPUTER SCIENCE Practices with Python

4. CBSE All In One Information Practices Class 12

INTERNET SOURCES:

1. www.koders.com

2. www.happycodings.com
38
3. www.cplusplus.com

4. www.mycplus.com

39

You might also like