You are on page 1of 23
SPRINGDALES SCHOOL DHAULA KAUN NEW DELHI = 110021 C++ INVESTIGATORY PROJECT FILE LIBRARY MANAGEMENT SYSTEM Name: SIDHARTH GUPTA Board roll no.: 917 994 Za Class: XII Section: B Year:2018-19 ee ee ee ee ee eee ee ee w- I ier Sep tee tr. fp fp tos NE I IE iP SE _ COSCO COS, COR COSCO. Gre Its st N DD WU BF WN FB INDEX Certificate Acknowledgement Introduction Requirements Specifications Header File Used Main Program Output PUP ORE RFE ARAB HH RN PN NG > —& i? see so — oe PEC EHEEEEEEEEE HEHE CERTIFICATE This is to certify that Sidharth Gupta, student of class XIl, Springdales School, Dhaula Kuan, New Delhi(Board Roll No.4)74420) has completed the project “Library Management System” in the subject Computer (083) during the academic year 2018-2019 towards partial fulfillment of credit for the computer practical evaluation of CBSE 2019, and submitted satisfactory report, as compiled in the following pages, under my supervision. He has put in his best to bring the project to the current shape. 7 Oh sw Mrs. Goldie Bhambri Computer Teacher Springdales School, Dhaula Kuan & TIF 99 Rea wnagnn, ACKNOWLEDGMENT | feel to present my C++ project which aims in “Studying the preparation of rayon threads”. | grate acknowledge the contribution of Computer teacher Mrs. Goldie Bhambri without whom this project would not have been feasible. She guided me throughout this project in every way. A C++ project involve program code which have to be done by the students to obtain the outputs and conclude the report on a meaningful note. Therefore, | would like to thanks Computer Teacher for guiding me step by step and ensuring that | completed the program with ease. 1 also acknowledge the efforts of my parents as they gave me the sigh of thought, scientific temperament for understanding the topic and gave me constant support during making of this project. Thanks a Lot!!! OOO Se 7 FT —s~ a ee EE ES GF INTRODUCTION This is library Management system C++ program. By this we can add a book, choose it and by giving the exact details we can search a book. Almost all the header files are used in this project. Objective of this Project is to design software fully automate the process of searching a book. Ne 1 se REQUIREMENT SPECIFICATIONS Functional requirements: 1) Accession number, roll number and teacher identification must all be unique as they form the primary keys of the respective tables. 2) All new books must be entered in the accession table first, to avoid problems later. 3) A book must not be deleted from student profile unless and until she pays the appropriate fine or the same book. 4) While inserting values in the database, only valid values must be entered. Data requirements: 1) The Library Management System shall be required to maintain information about its users and books. 2) It shall store databases for students, teachers and books. 3) The student database stores information about a student’s roll no, name, address, course and year. 4) The book database stores information about a book title, author, publisher, cost, bill number, year of publishing and pages. 5) The teacher database stores information about a teacher's id, name, department, designation, address and telephone number Software requirements: The system on which the Library Management System is installed must have Microsoft windows in it. Hardware requirements: Genuine intel, x86 Family 15 Model 2 Stepping 4, 120.0 MB RAM. = Se eo ee eS Dt SSS I OE SE OS ONS NSN SO #include #include #include #include OS = MAIN PROGRAM #include #include #include #include #include #include class lib { protected: char name[25][25); char wn{25][25]; char code(25)[15]; char copy[25][15]; 7 } a class os { int 2; public: void add_(void); void delete_(void); void plus(void); void display_(void); void initial(){2z=0;} void srch(); b void fn :: add_(void) //To add a new book { int m,n,k; “eee SO eee eee OO ewrrwe : a a a el ws STOO crc peer ee cleser() fstream f1, fl.open("book1 txt", ios out | ios app); cout<<"\n\nEnter the book name cin>>name[z]; cout<<"Enter writter name cin>>wn[z]; cout<<"Enter the book code :", cin>>code[z]; cout<<"Enter the no. of copy :"; cin>>copy[z]; inti; mestrlen(name[z]); n=strlen(wn[z]); k=strlen(code[z}); f1.seekg(0,ios::end); fil<>i; fstream 2; f2.open("book1.txt" ios::in|ios::out |ios::nocreate); f2.seekg(0); char b[20]; int m,n,o; char *1; while(f2.eof()==0) { f2>>b; f2>>b; f2>>m; f2>>l; n=atoi(I); o=strlen(l), if(m==i) f2.seekg(-0,ios::cur); if (n>0) { nj ON TN DDD OE OE OE Oe eee eee eee a \ \ | \ I add ee EDS OOOO OO eee eeseeseeeaeeeEeaa>aa=EamaaaamEeeee wel f2<>j; fstream 6; _- f6.open("book1.txt",ios::in | ios::out |ios::nocreate); f6.seekg(0); ~ char c[30]; int e,r,t; char *p; while(f6.eof()==0) { Ss OC OC CS CY CO So SSS EE OEE Eee eeeeeeeeEeeeEeEeEeEeEeEeEeEEE—EOEeEeETEe eee \ f6>>c, f6>>c; {6>>r; f6>>p; e=atoi(p); testrlen(p); if(r==j) { {6.seekg(-t,ios::cur); if(e>=0) { ett; f6<>j; fstream f4; 4.open("book1.txt" i f4.seekg(0); |ios::app); \ vv o OO C- S- e-- Oo SF FSS —— i O O R e re OO OT OT Te char c[20],d[20]; int n,p; while(f4,eof()==0) { f4>>C; f4>>d; f4>>n; f4>>p; if(n==j) { cout<<" Book name :"<>i; switch(i) case 1: Z { f.add_(); bréak; case 2: { f.delete_(); cout<<"\n\n*****-. WELCOME TO LIBRARY MANAGEMENT break; } case 3 { f.plus(); break; } case 4: { f.display_(); break; } case 5: { f.srch(); break; } case 6: { cout<<"Thank you."; cout<<"endl"; cout<<"Made by Sidharth Gupta class XII-B"; break; } ; am if (i==6) a break; } getch(); return 0; — sve el lw Uw CUS es ese ee re el ere le le le eee” ’ ’ , , ’ ’ , , , , ’ , - NP DD ag QUTPUTS OCR UBC Sa sae g cL eee Car OTe ee Gg Cw ee res eta ee ig Cee em aes i Creare So a ees Para Tatas ses ~—ern eee ENN & & OO CY © OG d 6 0 6 6G 66 6G SS © WELL COME TO LIBRARY MANAGEMENT PROGRAM - Shat do you want to do? Add a new book to the list. Delete a copy of book from List. Add a copy of book to list. See the book list. Search a Book from list. ean Input your choice: 1_ Enter the book name :The_Invisible_Man Enter writter name inter the book cade Enter the no. of copy heex————— WELL COME TO LIBRARY MANAGEMENT PROGRAM — PN CORT MES aC Og : Add a new book to the list. : Delete a copy of book from list. : Add a copy of book to list. See the book list. Search a Book from list. : Exit . lateness tote} = ewe ewe ee Seana eC SAR) eee ere Sot Writ rt) ed Poet) 1 Sones 2 3 f a1 sey] ctr rr Tete ea oot can 2 Sion et oreo Fra Rosen cy es eps rt) eC etd ce ieee ceri) Ceca er SS Ae ed Tovar ct Card Caen een eo PSR moar eee Secu Me yo ac Eto Ree comme Bee oer Ena eA ee ace eo ee oC eae eee Peart Se wee acorn ee neste ner mrCs nner ernie eae red aon e Exit Teer ers ee ec mae nicininiabsinlsisiniateinnt | ANY Brent rete Yeats Code Balagurushamy 1 NTs iD eC 0s rs petty 3 teow sl ay BrA aa 21 Boyelstead piso) oy tS 31 yt 30 Lao cat ERS BC i Solid_state BES) 6 Coe est Ce) eS ee 50 xx———-— WELL COME TO LIBRARY MANAGEMENT PROGRAM — PaO La Cog : Add a new book to the list. : Delete a copy of book from list. : Add a copy of book to list. See the book list. Search a Book from list. > Exit . Imput your choice:5_ lease enter the Book code: 11 Book name : Physics Seat On ee Lo a Book code pee Available copy : 15 \ \ \ ——_— =a‘ SS wsrTwevwe ve ewe SSO RN 2 eee ee — Tere NTL eee eee PRUE) a a aed: IT PROGRAM ——-- What do you want to do? Add a new book to the list. Delete a copy of book from 1 Add a copy of book to list. See the book list. Search a Book from list. : Exit . Input your choice :6 TU gto) Ls de by Sidharth Gupta class XII-B SOFT COPY AND PROGRAM x Sree gySnamin GR — ku-B 35 _ >

You might also like