You are on page 1of 53

LIBRARY MANAGEMENT

PROBLEM STATEMENT: Mohamed Sathak A.J. College of engineering is an affiliated college under the Anna University five different departments and more than 1200 students studying under it. he main aim to develop this soft!are is to manage the operations performed in our li"rary. he "asic information a"out our li"rary is as follo!s here are five departments !ith #0 students in each department !ith a total strength of 1200 students and 1$0 lectures. here are %000 "ooks availa"le. he managing services re&uired are 'ook management( o maintain the follo!ing details a. 'ook cost and purchase details. ". )u"lisher and author details. c. o remove the "ooks details in case it had gone out of use or to add ne! "ooks name into the document. Student services( a. *ach student is given three cards +one "ook per card,. ". he date of "ooks taken and the last date should "e documented and upgraded every !eak. c. -n failure of returning the "ook on or "efore the due date !ill "e fined +1.s per day,. d. Students must su"mit there cards at the "eginning of every semester and then only the student/s account should "e activated. Staff services( a. *ach student is given three cards +one "ook per card,. ". he date of "ooks taken and the last date should "e documented and upgraded every !eak. c. -n failure of returning the "ook on or "efore the due date !ill "e fined +1.s per day,.

SOFTWARE REQUIREMENTS SPECITFICATION


1. INTRODUCTION :
1.1. )urpose( he main purpose of the specification is to guide the developer a"out the "ook and the account structure0 students and staff services0 re&uirements and the input and output feature. 1.2. Scope( he 12'.A.3 MA4A5*M*4 S3S *M soft!are has the a"ility to display the details of the "ooks availa"le in various departments0 the transactions of "ooks and a"out the "ook holders. 2t ena"les online reservation of "ooks. 2t also ena"les a fully automated li"rary service0 !hich makes the !ord easier and systematic. '*4*62 S( Saves time. .educes the manual !ork. Makes the searching !ork easier. -'J*C 27*S( 6ully automated li"rary service. *fficient !orking of the li"rary. 1.8. 9efinitions0 Acronyms and a""reviation( 1A4: 1ocal Area 4et!ork. 5U2: 5raphical User 4et!ork -S ; -perating System. .AM ; .andom Access Memory -.':-nline .eservation of "ooks <99: <ard 9isc 9rive 1MS: 1i"rary Management System 1.=. .eferences( he "ooks and materials referred during the pre:development stages of the pro>ect include( Soft!are *ngineering: "y .oger S. )ressman Soft!are *ngineering: "y James )eters

Soft!are *ngineering: "y 2an Somerville 1.$. -vervie!( Section 2 gives a "rief introduction a"out the document and the o">ectives of the soft!are. he overall description such as system interface0 soft!are interface0 hard!are interface0 communication interface are discussed in section 22 and the soft!are product featured section 222. 2. OVERALL DESCRIPTION( 2.1. ).-9UC )*.S)*C 27*( he product !orks on a stand alone system. hus it is independent. 2t must "e a"le to run on a 1A4 of any num"er of client system under the control of the server. 2.1.1. System 2nterfaces( he client systems should "e a"le to share the data availa"le in the data"ase among the net!ork connections. 2.1.2( User 2nterfaces( he screen format is in the menu type !hich contains su": menus !hich is used for the interaction !ith the user. his menu type screen format allo!s the user to choose his option. his type of format !ill make the user to operate easily. 2.1.8( <ard!are interfaces( he ?ey"oard and the )rinter 'arcode reader *thernet Card 2.1.=( Soft!are 2nterfaces( 4AM* MS:Access -S @indo!s 7*.S2-4 S-U.C* 200 or any higher version Microsoft Corporation A) or B% or any higher Microsoft Corporation version

2.1.$( Communication 2nterfaces( Systems are interconnected "y a 1A4 connection. he li"rarian and administrators can access it. he 1A4 has the a"ility to access his li"rary accounts from any system !ithin the li"rary. 2.1.#( Memory Constrains( he system !ould re&uire a disc space of 20 5' and a 2$# M' space .AM for the service system and =0 5' <99 and a #= M' .AM for client systems. 2.1.C( -perations( he user !ill "e a"le to take the "ook through online reservation system in the !e"site !!!.mdsathakcollege.org. he user should get the "ook from the li"rary on sho!ing his li"rary card. he user !ill "e a"le to kno! his fine amount through this !e"site. he reservation is done "ased on the first come first serve "ases. here must also "e a "ack up of the data0 !hich !ill ena"le easy recovery from failures that may"e catastrophic at system oriented. 2.1.%( Site Adaptation .e&uirements( he soft!are re&uires no special modifications to adapt to particular installations eDcept for the files that are re&uired to "e re: created. 2.2. ).-9UC 6U4C 2-4S( he ma>or function includes( )roviding details a"out the "ooks availa"le in li"rary according to their department and author !ise for searching purpose. 5iving details a"out fine and their time of returning the "ooks. )rovide facility of online registration of "ooks. )roviding facility of online registration of "ooks. Updating of "ooks "y the li"rarian according to the understanda"le order. )roviding the "ook transaction such as "orro!ing0 rene!al0 retrieval of "ooks in an easier manner.

2.8 US*. C<A.AC *.2S 2CS( 2t is sufficient that the users have a "asic kno!ledge needed for operating the soft!are product. here is no need for any eDperience or technical kno!ledge. 2.=. C-4S .A24 S( .egularity policies( 2t is mandatory that no teDt "oD must "e left empty or contains insufficient data. <ard!are limitations( here must "e a #= M' on:"oard memory. Control 6unctions( 2ncase of any errors and service pro"lems0 proper error handling and data recovery mechanism must "e included. )arallel -perations( 2t must support many users simultaneously. 1anguage .e&uirements( 7isual "asic. .elia"ility .e&uirements( 9ata redundancy and use of specialE"lank characters must "e avoided. SafetyESecurity Considerations( he application must "e eDited al!ays normally. 2.$. ASSUM) 2-4S A49 9*)*49*4C2*S he user re&uiring the li"rary services must "e a mem"er of the li"rary. he re&uired input files must "e present. he details entered a"out the "ooks and the cardholders must "e a valid one. 2.#. A))-. 2-4245 -6 .*FU2.*M*4 S( 4ot applica"le.

3. SPECIFIC REQUIREMENTS:
8.1. *A *.4A1 24 *.6AC* .*FU2.*M*4 S( 8.1.1. User interfaces( he interface used is graphical user interface +5U2, and the interface must "e easy to understand. his interface services as a "ridge "et!een the user and the soft!are. 2t also makes the user interaction !ith the system easy. he details a"out the students and staffs must "e filled during online reservation. he user interface includes( 8.1.1.1. Screen formatsEorganisation( he introductory screen !ill "e the first to "e displayed !hich !ill allo! the users to choose either of the one option like vie!ing the details of the "ooks they are holding and searching the "ooks0 updating the ne! "ooks on online registration. 8.1.1.2. @indo!s formatEorganisation( @hen the user chooses some other option then the information pertaining to that choice !ill "e displayed in a ne! !indo!0 !hich ensures multiple !indo!s to "e visi"le on the screen and the users can s!itch "et!een them. 8.1.1.8. 9ata format( he data entered "y the users !ill "e alphanumeric. 8.1.1.=. *nd message( @hen there are some eDpectations raising error like entering invalid details0 the n error messages !ill "e displayed prompting the users to re:enter the details. @hen an event has taken place successfully like the searching of "ooks0 then a message G'ook Availa"leH !ill "e displayed to the user at the end.

8.1.2. <ard!are 2nterfaces( he system must "asically support certain input and output devices. heir descriptions are as follo!s( 4ame of 9escription of purpose the item 'ar Code o check the validity of the li"rary .eader card )rinter o print the list of selected "ooks and reports regarding the "ooks taken Source of input or destination of output Source of input 9estination of output

8.1.8( Soft!are 2nterfaces( he operating system used in @indo!s A) and the data"ase used in MS:Access. 8.1.=. Communication 2nterfaces( *very client system connected via 1A4 esta"lishes a communication only !ith the server and not !ith any other client system. 10 to 20 systems are connected using 1A4 of 10 M"ps is used.

8.2. S-6 @A.* ).-9UC 6*A U.*S( 8.2.1. 6*A U.* 1( 2SSU245 29S - M*M'*.S( his is the feature provided to all the mem"ers of li"rary. 8.2.1.1. )urpose( *ach login of the user !ill have the entire data"ase of "ooks. -nly the li"rarian has special privilege to modify the data"ase. his is a feature in order to access the individual/s details regarding his current "ook status. 8.2.1.2. StimulusE.esponse( 'y providing 29s to the users the details like the date of returning already taken "ooks0 the fine money etc can "e identified for the particular user. 8.2.1.8. Associated 6unctional .e&uirements( -nce the user clicks the respective feature in the stain0 he should "e taken to the appropriate section ena"ling them to vie! the college details. 8.2.1.8.1.1. 2ntroduction( he user must "e provided !ith the re&uested information !ithin 10seconds. 8.2.1.8.1.2. 2nputs( he user !ill choose appropriate options out of the options availa"le0 namely vie!ing college details and applying for admissions. 8.2.1.8.1.8. )rocessing( .ecogniIing the correct option chosen "y the "ro!ser. 8.2.1.8.1.=. -utputs( he pages corresponding to the chosen features !ill "e displayed.

8.2.2. 6*A U.* 2( C.*A 245 M*M'*.S<2) 4UM'*.( At the starting of the year a mem"ership num"er !ill "e issued to each and every student or staff of this soft!are. 8.2.2.1. )urpose( he purpose of issuing a mem"ership num"er is to increase security and to make sure that access is given only to the staff or the students. 8.2.2.2. StimulusE.esponse( -nce the re&uest is made a !indo! !ill appear asking for all personal details of the staffEstudent so as to issue a mem"ership num"er. 8.2.2.8. Associated 6unctional .e&uirements( 8.2.2.8.1. 6unctional .e&uirements: Creating mem"ership num"er( 2t must check that the user enters valid personal details and display error messages to avoid a"normal interrupt. 8.2.2.8.1.1. 2ntroduction he mem"ership num"er !ill "e issued "ased on precise input details entered "y user. 8.2.2.8.1.2. 2nputs he user must enter input details like name of the staff or student0 roll num"er0 department etc. 8.2.2.8.1.8. )rocessing 2t !ill "e checked !hether the entered input is valid or not and !ill create a mem"ership for the staffEstudent. 8.2.2.8.1.=. -utputs( he issued num"er should "e displayed to the user.

8.2.8. 6*A U.* 8( U)9A 245 -6 '--?S 24 <* 12'.A.3( he a"ility of the soft!are to provide easy entering of the "ooks in the li"rary. 8.2.8.1. )urpose( he purpose of this soft!are is to ena"le the li"rary staff mem"ers to enter the "ook in an easy manner. 8.2.8.2. StimulusE.esponse( -nce the user chooses the particular option0 the !e" pages corresponding to that are to "e displayed on the screen. 8.2.8.8. Associated 6unctional .e&uirements 8.2.8.8.1.6unctional .e&uirements: Updating of "ooks in the li"rary( -nce the user clicks the respective feature they should "e taken to the appropriate section ena"ling them to enter the code0 author name0 title of the "ook and the pu"lisher of the corresponding "ook. 8.2.8.8.1.1. 2ntroduction( he user must "e provided !ith the re&uested information !ithin 12seconds. 8.2.8.8.1.2. 2nputs( he user should give the code0 title of the "ook0 author name and the pu"lisher of the "ook. 8.2.8.8.1.8. )rocessing( .ecognising the correct option chosen "y the user in the "ro!ser. 8.2.8.8.1.=. -utputs( he outputs !ill "e displaying to the user the pages corresponding to the chosen feature.

8.2.=. 6*A U.* =( .A4SAC 2-4 -6 '--?S( 8.2.=.1. )urpose( he purpose is to ena"le the user to lend a "ook !hen certain conditions are satisfied like amount of fine for the last "ook has "een paid or not0 valid mem"ership has "een entered etc. 8.2.=.2. StimulusE.esponse( @hen the user re&uests for lending the "ook0 screen prompting the user to enter details a"out the mem"ership num"er etc. 8.2.=.8. Associated 6unctional .e&uirements( 8.2.=.8.1.6unctional .e&uirements:1ending of "ooks( 2f invalid mem"ership num"er of registration num"er has "een entered0 it must handle this error and ask the user to enter the proper input. 8.2.=.8.1.1. 2ntroduction( he user must "e provided !ith the re&uested information namely the 29 and the num"er of "ooks needed. 8.2.=.1.2. 2nputs( he inputs given are the num"er of "ooks and the 29 of the student. 8.2.=.8.1.8. )rocessing( .ecognising of the correct option chosen "y the user in the "ro!ser0 it reduces the num"er of copy in the file. 8.2.=.8.1.=. -utputs( 9isplay a message confirming !hich "ooks the user has taken.

8.2.$. 6*A U.* $( .*S*.7245 -6 '--?S( he soft!are must allo! the user to reserve for a particular "ook. 8.2.$.1. )urpose( he purpose is to allo! the applicants to reserve the "ooks0 !hen certain conditions are satisfied. 8.2.$.2. StimulusE.esponse( -nce the user re&uests for the particular "ooks0 it must "e displayed on the screen prompting the user to fill the details a"out his roll num"er0 card num"er etc. 8.2.$.8. Associated 6unctional .e&uirements 8.2.$.8.1.6unctional .e&uirements: .eserving of "ooks( 2f any one of the details provided "y the user does not meet the defined parameters then it !ould notify the person "y displaying error message. 8.2.$.8.1.1. 2ntroduction( 2f the register num"er entered is valid0 then it !ill ask details a"out the "ook !hich the user has re&uested to reserve. 8.2.$.8.1.2. 2nputs( he user must enter input details like mem"ership num"er0 title and the author name of the "ook to reserved. 8.2.$.8.1.8. )rocessing( )rocessing !ill "e done to check !hether the entered detail is valid or not and !hether the re&uested "ook is availa"le for reservation. 8.2.$.8.1.=. -utputs( A message must "e displayed confirming !hich "ook has "een reserved for the user.

8.2.#. 6*A U.* #(CA1CU1A 2-4 -6 624* AM-U4 @<21* .* U.4245 <* '--?( 2f the user !ants to reserve or rene! a "ook then the soft!are must first check if any pending "ook has to "e returned and !hether the fine has "een paid. 8.2.#.1. )urpose( he purpose of this is to ena"le the students or staff to vie! the amount of fine to "e paid and last date to return a "ook. 8.2.#.2. StimulusE.esponse( he user !ill "e asked to enter mem"ership num"er and the soft!are !ill check if any fine has to "e paid. 8.2.#.8. Associated 6unctional .e&uirements 8.2.#.8.1.6unctional .e&uirements: Calculation of fine( )roper error messages must "e displayed if invalid input is entered. 8.2.#.8.1.1. 2ntroduction( he user can check the last date of return or !hether the fine has "een paid depending on returning process can "e carried out. 8.2.#.8.1.2. 2nputs( he user must enter input details like mem"ership num"er0 title and author of the "ook to "e reserved. 8.2.#.8.1.8. )rocessing( he soft!are !ill check !hether a particular mem"er has reserved a "ook or not. 8.2.#.8.1.=. -utputs( 2t !ill display the last date for returning the "ook and the amount of fine due.

8.2.C. 6*A U.* C( S*A.C<245 6-. A '--?( he soft!are must "e a"le to search and give details for a specified "ook on user/s re&uest. 8.2.C.1. )urpose( he purpose of this is to ena"le the users to search for a re&uired "ook even if the user is not a"le to provide information a"out the "ook. 8.2.C.2. StimulusE.esponse( -nce the user chooses this option 0 he is asked to enter the title and name of the author of the "ook to "e searched. 8.2.C.8. Associated 6unctional .e&uirements 8.2.C.8.1.6unctional .e&uirements: Searching "y Author/s name( 2t must also "e a"le to handle invalid inputs and search for the eDact "ook. 8.2.C.8.1.1. 2ntroduction( he user must "e asked to enter the title and author of the re&uired "ook upon !hich the specified "ook can "e searched. 8.2.C.8.1.2. 2nputs( he user can search for a "ook "y giving the title and author name of the "ook. 8.2.C.8.1.8. )rocessing( he soft!are must provide details of all "ooks given a particular title of the "ook and author name and display information on all "ooks related to the title of the "ook and name of the author. 8.2.C.8.1.=. -utputs( All the "ooks !ith the given title and author name are displayed. And also the information a"out !here it can "e found is displayed.

8.8. )*.6-.MA4C* .*FU2.*M*4 S ( At ay instant0 a maDimum of four nodes or users !ill "e given access simultaneously. Since the program handles multiple users0 if more than one person attempts to save data to the file stored in data"ase0 the program !ill lock the data file using a t!o phase commit protocol to prevent simultaneous access. 8.=. 9*S254 C-4S .A24S( .e&uires 2$# M' on:"oard memory. 'ased completely on !indo!s functionality platform. he Soft!are should "e porta"le and must "e inaccessi"le to unauthoriIed users. 8.$. S-6 @A.* S3S *M A .2'U *S(

8.$.1. .elia"ility( he factors needed to esta"lish the soft!ares eDpected relia"ility are ( he user inputs should "e valid and !ithin the given range. 4ormal termination of the program. 8.$.2. Availa"ility( he factors that guarantee the soft!are/s availa"ility include proper termination and correct input details. Also the resources used for the pro>ect development is Microsoft Certified0 !hich speaks of its high &uality standards. 8.$.8. Security( 2t must "e ensured that access !ill "e provided to the authoriIed persons via user/s 29. 4et!ork security !ill "e provided "y the use of fire!alls. Checks can "e performed at regular intervals to ensure data integrity.

8.$.=. Maintaina"ility( 2mplementing the concept of modularity0 !hich in turn reduced the compleDity involved in maintaining it0 !ill develop the soft!are. he administrator should have a sound technical kno!ledge a"out maintaining the soft!are. 8.$.$. )orta"ility( he application is very adapta"le0 it can "e used in different computer systems !ith different operating systems and folders. 8.#. 1-52CA1 9A A'AS* .*FU2.*M*4 S ( he system re&uires the use of teDt file to maintain the student and staff details a"out !hich "ook has "een reserved and the amount of fine.

4. INDEX:
421

5. APPENDICES:
421

DATA FLOW DIAGRAM: LEVEL 0: 2nput files 1i"rarian Library manageme nt System 9isplay

Mem"er operations

'ook operations LEVEL 1(a):

User

Input files

Accept the details

Mem"er 9ata"ase

@rite in the file

'ook details

LEVEL 1(b): Add ne! mem"er

Mem"er data"ase

User

Mem"er -peratio ns 2ssue duplicate 29 card

.ene! eDisting mem"er ransaction data"ase

LEVEL 1(c): Add ne! "ook 'ook data"ase

User

'ook operation s

2ssue "ook

ransaction data"ase

.eturn "ook

LEVEL 2: .ead mem"er details User 9ispla y Customer data"ase

.ead "ook details ransaction data"ase .ead transaction details

FUNCTIONAL POINT ANALYSIS Library management system


6unction oriented soft!are metrics measure of the functionality delivered "y the application as a normaliIation value. 6unction oriented metrics !ere first proposed "y Al"recht JA1'CBK0 !ho suggested a measure called the function point. 6unction points are derived using an empirical relationship "ased on counta"le JdirectK measures of soft!are/s information domain and assessments of soft!are compleDity. 6ormula 6)Lcount totalMJ0.#$N +0.01M 6i,K 6unction point count for 1i"rary Management 6i 61 5eneral System characteristics 5eneral system Ad>ustment factor Characteristics 9ata communications <o! many communication facilities are there to aid in the transfer or eDchange of information !ith the application 9istri"uted data <o! are distri"uted data and )rocessing processing functions handledO )erformance 9id the user re&uire response time or throughputO <eavily used <o! heavily used is the current Configuration hard!are platform !here the application !ill "e eDecutedO ransaction rate -n line data entry *nd user efficiency <o! fre&uently is transactions eDecuted daily0 !eekly0 monthly0 etc.O @hat percentage of the information is entered onlineO @as the application designed for end user efficiencyO 7alue 2

62 68 6=

2 8 2

6$ 6# 6C

8 0 1

6% 6B

-n line update CompleD processing

610 .eusa"ility 611 2nstallation ease 612 -perational ease 618 Multiple sites

61= 6acilitate change

<o! many 216/s are updated "y online transactionO 9oes the application have eDtensive logical or mathematical processingO @as the application developed to meet one or many user/s needsO <o! difficult is conversion and installationO <o! effective andEor automated are start up0 "ack up and recovery proceduresO @as the application specifically designed0 developed and supported to install at multiple sites for multiple organiIationsO @as the application specifically designed0 developed and supported to facilitate changeO - A1

0 8 = 8 8 0

8 2B

ype of components *Dternal inputs *Dternal outputs *Dternal in&uiries *Dternal logical files *Dternal interface files

Unad>usted function point CompleDity of components $M8 =M= 8M8 1MC 8M$ otal

7alue 1$ 1# B C 1$ #2

6ormula 6) L count totalMJ0.#$N +0.01M6i,K L #2MJ0.#$N +0.01M2B,K L $%.2% Function point count for Library Management System= 58.28 Lines of code=58.28 !!="82#=".8 $L%& &ode de'eloped in (&) Estimati n ! e!! rt "sing # c m a=!.2* b=".+5 ,ffort =a -$L%&. b =!.2 -".8.".+5 =5./ person0month Estimati n ! time "sing # c m M $e%: 1ype of 2ro3ect = %rganic. 1hen4 c=2.5* d=+.!8 1ime = -,ffort. d c = -5./. +.!8 2.5 = #./ months Estimati n ! # st "sing # c m &ost = #./ !+++ = 5s. "#652 M $e%: M $e%:

).-5.AM

PincludeQiostream.hR PincludeQconio.hR PincludeQstdio.hR PincludeQstring.hR PincludeQfstream.hR PincludeQprocess.hR 621* MmS 621* M"S 621* MtS int 29L0S struct mem"er T int midS char mnameJ20K0maddJ80KS struct msince T int day0mon0yearS UmsS struct meDpir T int day0mon0yearS UmeS int inputmem"er+,S UMS struct "ook T struct "kid T int gno0"no0noS U"kS char "nameJ20K0authorJ20K0pu"J20KS int priceS int input"ook+,S U'S struct transaction T

int mid0tidS struct "ookid T int gno0"no0noS U"kS struct issued T int day0mon0yearS UiS struct returned T int day0mon0yearS UrS int fineS char reasonS U S int checkmem+int idno,S void inputmem"er+,S int check"ook+int gno0int "no0int no,S void input"ook+,S void input+,S void mem"er+,S void memscr+,S void addmem+,S void rene!mem+,S void issdupp+,S void "ook+,S void "ookscr+,S void add"ook+,S void iss"ook+,S void ret"ook+,S void display+,S void displayscr+,S void memdis+,S void "ookdis+,S void trandis+,S void mainscr+,S void line+,S void main+, T

int

optS clrscr+,S !hile+1, T mainscr+,S printf+VWn*nter your option(V,S scanf+VXdV0Yopt,S s!itch+opt, T case 1( input+,S "reakS case 2( mem"er+,S "reakS case 8( "ook+,S "reakS case =( display+,S "reakS case $( eDit+0,S default( printf+V4ot a valid optionV,S fflush+stdin,S getchar+,S "reakS U U

U void line+, T printf+VWnV,S for+int iL0SiQ%0SiNN, printf+V:V,S printf+VWnV,S U

int checkmem+int idno, T

fseek+m0000,S !hile+fread+YM0siIeof+M,010m,ZL[W0[, T if+M.midLLidno, return 1S U return 0S U int check"ook+int gno0int "no0int no, T fseek+"0000,S !hile+fread+Y'0siIeof+',010",ZL[W0[, T if++'."k.gnoLLgno,YY+'."k."noLL"no,YY +'."k.noLLno,, return 1S U return 0S U void inputmem"er+, T int iLM.inputmem"er+,S !hile+i, T if +iLL:1, T iLM.inputmem"er+,S continueS U f!rite+YM0siIeof+M,010m,S iLM.inputmem"er+,S U U

int mem"er((inputmem"er+, T int >0idS

long int iS >L0S printf+VWn*nter the details of the mem"erV,S printf+VWnWt29 num"er : (V,S scanf+VXdV0Yid,S iLftell+m,S >Lcheckmem+id,S midLidS if++midZL0,YY+Z>,, T fseek+m0i00,S printf+VWnWt4ame : (V,S scanf+VXsV0Ymname,S printf+VWnWtAddress : (V,S scanf+VXsV0Ymadd,S printf+VWnWtMem"er since: (V,S printf+VWnWtWt9ay : (V,S scanf+VXdV0Yms.day,S printf+VWnWtWtMonth : (V,S scanf+VXdV0Yms.mon,S printf+VWnWtWt3ear : (V,S scanf+VXdV0Yms.year,S printf+VWnWt*Dpiration : (V,S printf+VWnWtWt9ay : (V,S scanf+VXdV0Yme.day,S printf+VWnWtWtMonth : (V,S scanf+VXdV0Yme.mon,S printf+VWnWtWt3ear : (V,S scanf+VXdV0Yme.year,S return 1S U if+>, T printf+VWn he mem"er 29 already eDistV,S fflush+stdin,S getchar+,S return :1S U return 0S U int "ook((input"ook+,

T int >0gno0"no0noS long int iS >L0S printf+VWn*nter the details of the "ookV,S printf+VWnWt'ook 29 : (V,S printf+VWnWtWt 5no : (V,S scanf+VXdV0Ygno,S printf+VWnWtWt'no : (V,S scanf+VXdV0Y"no,S printf+VWnWtWt4o : (V,S scanf+VXdV0Yno,S iLftell+",S >Lcheck"ook+gno0"no0no,S "k."noL"noS "k.gnoLgnoS "k.noLnoS if+++"k.gnoZL0,\\+"k."noZL0,\\+"k.noZL0,,YY+Z>,, T fseek+"0i00,S printf+VWnWt4ame : (V,S scanf+VXsV0Y"name,S printf+VWnWtAuthor : (V,S scanf+VXsV0Yauthor,S printf+VWnWt)u"lisher : (V,S scanf+VXsV0Ypu",S printf+VWnWt)rice ] (V,S scanf+VXdV0Yprice,S return 1S U if+>, T printf+V he "ook id already *DistsV,S fflush+stdin,S getchar+,S return :1S U return 0S U void input"ook+,

T int iL'.input"ook+,S !hile+i, T if+iLL:1, T iL'.input"ook+,S continueS U f!rite+Y'0siIeof+',010",S iL'.input"ook+,S U U void input+, T clrscr+,S mLfopen+V^(WWmem"er.tDtV0VrNV,S "Lfopen+V^(WW"ook.tDtV0VrNV,S .tidL0S inputmem"er+,S input"ook+,S fclose+m,S fclose+",S fclose+t,S getchar+,S U void mem"er+, T int optS !hile+1, T memscr+,S mLfopen+V^(WWmem"er.tDtV0VrNV,S tLfopen+V^(WWtrans.tDtV0VrNV,S printf+VWnWt*nter your option(V,S scanf+VXdV0Yopt,S s!itch+opt,

T case 1( case 2( case 8( case =( default( addmem+,S "reakS rene!mem+,S "reakS issdupp+,S "reakS fclose+m,S fclose+t,S returnS printf+V4ot a valid optionV,S fflush+stdin,S getchar+,S "reakS

U fclose+m,S fclose+t,S U U void memscr+, T clrscr+,S gotoDy+1#01,S printf+V12'.A.3 MA4A5*M*4 S3S *MWnV,S gotoDy+1202,S printf+VM*M'*.WnV,S gotoDy+%08,S printf+V1(Add 4e! Mem"erV,S gotoDy+%0=,S printf+V2(.ene! *Disting Mem"erV,S gotoDy+%0$,S printf+V8(2ssue 9uplicate 2:CardV,S gotoDy+%0#,S printf+V=('ackV,S U

void addmem+,

T if+M.inputmem"er+,LL1, T fseek+t0002,S fseek+m0002,S f!rite+YM0siIeof+M,010m,S .tidLNN29S .midLM.midS .reasonL[A[S .fineL$00S .i.dayL .i.monL .i.yearL0S .r.dayL .r.monL .r.yearL0S ."k."noL ."k.noL ."k.noL0S f!rite+Y 0siIeof+ ,010t,S U U void rene!mem+, T int idS char chS printf+VWn*nter the Mem"ership id(V,S scanf+VXdV0Yid,S if+checkmem+id,, T .tidLNN29S .fineL800S .reasonL[*[S .midLidS .i.dayL .i.monL .i.yearL0S .r.dayL .r.monL .r.yearL0S ."k."noL ."k.noL ."k.noL0S fseek+t0002,S f!rite+Y 0siIeof+ ,010t,S printf+VWnMem"er rene!ed.....V,S getchar+,S U

else T printf+VWn he 29 num"er does not eDist do you !ant to add a ne! mem"er+yEn,(V,S chLgetch+,S if+chLL[y[, addmem+,S getchar+,S U U void issdupp+, T int idS printf+VWn*nter the Mem"ership id(V,S scanf+VXdV0Yid,S if+checkmem+id,, T .i.dayL .i.monL .i.yearL0S .r.dayL .r.monL .r.yearL0S ."k."noL ."k.noL ."k.noL0S .tidLNN29S .fineL$0S .reasonL[9[S .midLidS fseek+t0002,S f!rite+Y 0siIeof+ ,010t,S printf+VWn9uplicte id issued.....V,S getchar+,S U else printf+VWn he 29 num"er does not eDistV,S U

void "ook+, T int optS !hile+1, T "ookscr+,S "Lfopen+V^(WW"ook.tDtV0VrNV,S tLfopen+V^(WWtrans.tDtV0VaNV,S printf+VWnWt*nter your option(V,S scanf+VXdV0Yopt,S s!itch+opt, T case 1( add"ook+,S "reakS case 2( iss"ook+,S "reakS case 8( ret"ook+,S "reakS case =( fclose+",S fclose+t,S returnS default( printf+V4ot a valid optionV,S fflush+stdin,S getchar+,S "reakS U fclose+",S fclose+t,S U U void "ookscr+, T clrscr+,S gotoDy+1#01,S printf+V12'.A.3 MA4A5*M*4 S3S *MWnV,S gotoDy+1202,S printf+V'--?WnV,S gotoDy+%08,S printf+V1(Add 4e! 'ooksV,S

gotoDy+%0=,S printf+V2(2ssue 'ookV,S gotoDy+%0$,S printf+V8(.eturn 'ookV,S gotoDy+%0#,S printf+V=('ackV,S U void add"ook+, T if+'.input"ook+,LL1, T fseek+"0002,S f!rite+Y'0siIeof+',010",S U U void display+, T int optS !hile+1, T displayscr+,S printf+VWnWt*nter your option(V,S scanf+VXdV0Yopt,S s!itch+opt, T case 1( memdis+,S "reakS case 2( "ookdis+,S "reakS case 8( trandis+,S "reakS case =( fclose+t,S returnS default( printf+V4ot a valid optionV,S fflush+stdin,S getchar+,S "reakS U

fclose+t,S U U void iss"ook+, T int "no0no0gno0idS printf+VWn*nter 'ook id(V,S printf+VWnWtgno : (V,S scanf+VXdV0Ygno,S printf+VWnWt"no : (V,S scanf+VXdV0Y"no,S printf+VWnWtno : (V,S scanf+VXdV0Yno,S if+check"ook+gno0"no0no,, T printf+VWn*nter Mem"ership id (V,S scanf+VXdV0Yid,S mLfopen+V^(WWmem"er.tDtV0VrNV,S if+checkmem+id,, T .tidLNN29S .midLM.midS ."k.gnoLgnoS ."k."noL"noS ."k.noLnoS printf+VWn2SSU* 9A *(V,S printf+VWnWt9ayWtWt(V,S scanf+VXdV0Y .i.day,S printf+VWnWtMonthWtWt(V,S scanf+VXdV0Y .i.mon,S printf+VWnWt3ear(WtWt(V,S scanf+VXdV0Y .i.year,S printf+VWn.* U.4 9A *(V,S printf+VWnWt9ayWtWt(V,S scanf+VXdV0Y .r.day,S printf+VWnWt.eturnWtWt(V,S scanf+VXdV0Y .r.mon,S printf+VWnWt3ear(WtWt(V,S scanf+VXdV0Y .r.year,S

.fineL0.0S .reasonL[2[S fseek+t0002,S printf+VWnWt'--? 2SSU*9V,S fflush+stdin,S getchar+,S f!rite+Y 0siIeof+ ,010t,S U else T fflush+stdin,S printf+VWnMem"er 29 not foundV,S getchar+,S U fclose+m,S U else T fflush+stdin,S printf+VWn'ook not foundV,S getchar+,S U U void ret"ook+, T int "no0no0gno0idS printf+VWn*nter 'ook id(V,S printf+VWnWtgno : (V,S scanf+VXdV0Ygno,S printf+VWnWt"no : (V,S scanf+VXdV0Y"no,S printf+VWnWtno : (V,S scanf+VXdV0Yno,S if+check"ook+gno0"no0no,, T printf+VWn*nter Mem"ership id (V,S scanf+VXdV0Yid,S mLfopen+V^(WWmem"er.tDtV0VrNV,S if+checkmem+id,,

T .tidLNN29S .midLM.midS ."k.gnoLgnoS ."k."noL"noS ."k.noLnoS printf+VWn2SSU* 9A *(V,S printf+VWnWt9ayWtWt(V,S scanf+VXdV0Y .i.day,S printf+VWnWtMonthWtWt(V,S scanf+VXdV0Y .i.mon,S printf+VWnWt3ear(WtWt(V,S scanf+VXdV0Y .i.year,S printf+VWn.* U.4 9A *(V,S printf+VWnWt9ayWtWt(V,S scanf+VXdV0Y .r.day,S printf+VWnWt.eturnWtWt(V,S scanf+VXdV0Y .r.mon,S printf+VWnWt3ear(WtWt(V,S scanf+VXdV0Y .r.year,S .fineL10S .reasonL[.[S fseek+t0002,S printf+VWnWt'--? .* U.4*9(V,S fflush+stdin,S getchar+,S f!rite+Y 0siIeof+ ,010t,S U else T fflush+stdin,S printf+VWnMem"er 29 not foundV,S getchar+,S U fclose+m,S U else T fflush+stdin,S printf+VWn'ook not foundV,S

getchar+,S U U void displayscr+, T clrscr+,S gotoDy+1#01,S printf+V12'.A.3 MA4A5*M*4 S3S *MWnV,S gotoDy+1202,S printf+V92S)1A3WnV,S gotoDy+%08,S printf+V1(Mem"er 9etailsV,S gotoDy+%0=,S printf+V2('ook 9etailsV,S gotoDy+%0$,S printf+V8( ransaction 9etailsV,S gotoDy+%0#,S printf+V=('ackV,S U void memdis+, T clrscr+,S int DLBS mLfopen+V^(WWmem"er.tDtV0VrNV,S line+,S gotoDy+2$0=,S printf+V9etails of the mem"erV,S line+,S fseek+m0000,S gotoDy+20#,S printf+VMem"er 29V,S gotoDy+1$0#,S printf+V4ameV,S gotoDy+2$0#,S printf+VAddressV,S gotoDy+=B0#,S printf+VMem"er sinceV,S gotoDy+#20#,S

printf+V*DpirationV,S line+,S

!hile+fread+YM0siIeof+M,010m,ZL[W0[, T gotoDy+C0D,S printf+VXdV0M.mid,S gotoDy+120D,S printf+VXsV0M.mname,S gotoDy+280D,S printf+VXsV0M.madd,S gotoDy+$10D,S printf+VXdEXdEXdV0M.ms.day0M.ms.mon0M.ms.year,S gotoDy+#=0D,S printf+VXdEXdEXdV0M.me.day0M.me.mon0M.me.year,S DNL2S U line+,S fclose+m,S fflush+stdin,S getchar+,S U void "ookdis+, T clrscr+,S int DLBS "Lfopen+V^(WW"ook.tDtV0VrNV,S line+,S gotoDy+2$0=,S printf+V9etails of the "ookV,S line+,S fseek+"0000,S gotoDy+20#,S printf+V'ook 29V,S gotoDy+180#,S printf+V'ook 4ameV,S gotoDy+2%0#,S

printf+VAuthor 4ameV,S gotoDy+=%0#,S printf+V)u"lisher 4ameV,S gotoDy+C00#,S printf+V)riceV,S line+,S !hile+fread+Y'0siIeof+',010",ZL[W0[, T gotoDy+80D,S printf+VXdEXdEXdV0'."k.gno0'."k."no0'."k.no,S gotoDy+180D,S printf+VXsV0'."name,S gotoDy+2%0D,S printf+VXsV0'.author,S gotoDy+=%0D,S printf+VXsV0'.pu",S gotoDy+C20D,S printf+VXdV0'.price,S DNL2S U line+,S fclose+",S fflush+stdin,S getchar+,S U void trandis+, T clrscr+,S int DLBS tLfopen+V^(WWtrans.tDtV0VrNV,S line+,S gotoDy+2$0=,S printf+V9etails of the transactionsV,S line+,S fseek+t0000,S gotoDy+20#,S printf+V rans 29V,S gotoDy+120#,S printf+VMem"er 29V,S

gotoDy+220#,S printf+V'ook 29V,S gotoDy+800#,S printf+V2ssued dateV,S gotoDy+=$0#,S printf+V.eturn dateV,S gotoDy+#00#,S printf+V6ineV,S gotoDy+C00#,S printf+V.easonV,S line+,S fseek+t0000,S !hile+fread+Y 0siIeof+ ,010t,ZL[W0[, T gotoDy+20D,S printf+VXdV0 .tid,S gotoDy+120D,S printf+VXdV0 .mid,S gotoDy+220D,S printf+VXdEXdEXdV0 ."k.gno0 ."k.gno0 ."k.no,S gotoDy+800D,S printf+VXdEXdEXdV0 .i.day0 .i.mon0 .i.year,S gotoDy+=$0D,S printf+VXdEXdEXdV0 .r.day0 .r.mon0 .r.year,S gotoDy+#00D,S printf+VXdV0 .fine,S gotoDy+C00D,S printf+VXcV0 .reason,S DNL2S U line+,S fclose+t,S printf+VWnA:Mem"er added *:Mem"er rene!ed 9:9uplicate 2 card 2:'ook issued .:'ook .eturnedV,S fflush+stdin,S getchar+,S U void mainscr+,

T clrscr+,S gotoDy+1#01,S printf+V12'.A.3 MA4A5*M*4 S3S *MWnV,S gotoDy+%02,S printf+V1(2nputV,S gotoDy+%08,S printf+V2(Mem"erV,S gotoDy+%0=,S printf+V8('ookV,S gotoDy+%0$,S printf+V=(9isplayV,S gotoDy+%0#,S printf+V$(*DitV,S U

OUTPUT

12'.A.3 MA4A5*M*4 S3S *M 1(2nput 2(Mem"er 8('ook =(9isplay $(*Dit *nter your option(1 *nter the details of the mem"er 29 num"er : (1 4ame : (priya Address : (mylapore Mem"er since: ( 9ay : (10 Month : (1 3ear : (200$ *Dpiration : ( 9ay : (10 Month : (1 3ear : (2010 *nter the details of the mem"er 29 num"er : (2 4ame : (sharadha Address : ( .nagar Mem"er since: ( 9ay : (10 Month : (1 3ear : (200$ *Dpiration : ( 9ay : (10 Month : (1 3ear : (2010 *nter the details of the mem"er 29 num"er : (0

*nter the details of the "ook

'ook 29 : 5no 'no 4o 4ame : Author : )u"lisher )rice :

( : : : (1 (1 (1 (Soft!are] ()ressman : (printice (100

*nter the details of the "ook 'ook 29 : ( 5no : (2 'no : (2 4o : (2 4ame : (Computer Author : (sudharsan )u"lisher : (technical )rice ] (200 *nter the details of the "ook 'ook 29 : ( 5no : (0 'no : (0 4o : (0 12'.A.3 MA4A5*M*4 S3S *M 1(2nput 2(Mem"er 8('ook =(9isplay $(*Dit *nter your option(2 12'.A.3 MA4A5*M*4 S3S *M M*M'*. 1(Add 4e! Mem"er 2(.ene! *Disting Mem"er 8(2ssue 9uplicate 2:Card =('ack *nter your option(1

*nter the details of the mem"er 29 num"er : (8 4ame : (Anitha Address : (parris Mem"er since: ( 9ay : (10 Month : (2 3ear : (2000 *Dpiration : ( 9ay : (10 Month : (2 3ear : (200= 12'.A.3 MA4A5*M*4 S3S *M M*M'*. 1(Add 4e! Mem"er 2(.ene! *Disting Mem"er 8(2ssue 9uplicate 2:Card =('ack *nter your option(2 *nter the Mem"ership id(1 12'.A.3 MA4A5*M*4 S3S *M M*M'*. 1(Add 4e! Mem"er 2(.ene! *Disting Mem"er 8(2ssue 9uplicate 2:Card =('ack *nter your option(8 *nter the Mem"ership id(2 12'.A.3 MA4A5*M*4 S3S *M M*M'*. 1(Add 4e! Mem"er 2(.ene! *Disting Mem"er 8(2ssue 9uplicate 2:Card =('ack *nter your option(= 12'.A.3 MA4A5*M*4 S3S *M

1(2nput 2(Mem"er 8('ook =(9isplay $(*Dit *nter your option(8 12'.A.3 MA4A5*M*4 S3S *M '--? 1(Add 4e! 'ooks 2(2ssue 'ook 8(.eturn 'ook =('ack *nter your option(1 *nter the details of the "ook 'ook 29 : ( 5no : (8 'no : (8 4o : (8 4ame : (physics Author : (Mani )u"lisher : (technical )rice ] (800 12'.A.3 MA4A5*M*4 S3S *M '--? 1(Add 4e! 'ooks 2(2ssue 'ook 8(.eturn 'ook =('ack *nter your option(2

*nter 'ook id(

gno : (1 "no : (1 no : (1 *nter Mem"ership id (1 2SSU* 9A *( 9ay (10 .eturn (2 3ear( (200= .* U.4 9A *( 9ay (10 .eturn (8 3ear( (200= '--? 2SSU*9 12'.A.3 MA4A5*M*4 S3S *M '--? 1(Add 4e! 'ooks 2(2ssue 'ook 8(.eturn 'ook =('ack *nter your option(8 *nter 'ook id( gno : (2 "no : (2 no : (2 *nter Mem"ership id (2 2SSU* 9A *( 9ay (10 Month (2 3ear( (200C .* U.4 9A *( 9ay (10 Month (8 3ear( (200C '--? .* U.4*9(

12'.A.3 MA4A5*M*4 S3S *M

'--? 1(Add 4e! 'ooks 2(2ssue 'ook 8(.eturn 'ook =('ack *nter your option(= 12'.A.3 MA4A5*M*4 S3S *M 1(2nput 2(Mem"er 8('ook =(9isplay $(*Dit *nter your option(= 12'.A.3 MA4A5*M*4 S3S *M 92S)1A3 1(Mem"er 9etails 2('ook 9etails 8( ransaction 9etails =('ack *nter your option(1 :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: 9etails of the mem"er :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: Mem"er 29 4ame Address Mem"er since *Dpiration :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: 1 2 priya sharadha mylapore .nagar 10E1E200$ 10E1E200$ 10E1E2010 10E1E2010

8 Anitha parris 10E2E2000 10E2E200= :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: 12'.A.3 MA4A5*M*4 S3S *M

92S)1A3 1(Mem"er 9etails 2('ook 9etails 8( ransaction 9etails =('ack *nter your option(2 :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: 9etails of the "ook :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: 'ook 29 'ook 4ame Author 4ame )u"lisher 4ame )rice :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: 1E1E1 2E2E2 Soft!are] Computer )ressmanssman sudharsan printice technical 100 200

8E8E8 physics Mani technical 800 ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: 12'.A.3 MA4A5*M*4 S3S *M 92S)1A3 1(Mem"er 9etails 2('ook 9etails 8( ransaction 9etails =('ack *nter your option(8

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

9etails of the transactions :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: rans 29 Mem"er 29 'ook 29 2ssued date .eturn date 6ine .eason :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: 1 2 8 = 8 1 2 1 0E0E0 0E0E0 0E0E0 1E1E1 0E0E0 0E0E0 0E0E0 10E2E200= 0E0E0 0E0E0 0E0E0 10E8E200= $00 800 $0 0 A * 9 2

$ 2 2E2E2 10E2E200C 10E8E200C 10 . :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: A:Mem"er added *:Mem"er rene!ed 9:9uplicate 2 card 2:'ook issued .: 'ook .eturned 12'.A.3 MA4A5*M*4 S3S *M 92S)1A3 1(Mem"er 9etails 2('ook 9etails 8( ransaction 9etails =('ack *nter your option(= 12'.A.3 MA4A5*M*4 S3S *M 1(2nput 2(Mem"er 8('ook =(9isplay $(*Dit *nter your option($

TEST CASES

INPUT Input details of member and boo78 input T __.. __.. __.. __.. U

PROCESSING Input details8 2nput the details a"out the "ook and the mem"ers like "ook id0 name0 author and mem"er name0 id0 address etc.

OUTPUT 29 num"er : (1 4ame : (priya Address : mylapore 'ook 29 : ( 5no:(1 'no:(1 4o:(1 4ame : (Soft!are] Author : ()ressman )u"lisher : (printice )rice : (100 M*M'*. 1(Add 4e! Mem"er 2.ene! *Disting Mem"er 8(2ssue 9uplicate 2:Card =('ack *nter your option(1 *nter the details of the mem"er 29 num"er : (8 4ame : (Anitha Address : (parris *nter your option(2 *nter the Mem"ership id(1 *nter your option(8 *nter the Mem"ership id(2

Member operations8 mem"er T __.. __.. __.. __.. U

Member operations8 his function does the various operations like issue of duplicate id card0 add ne! mem"er0 rene! eDisting mem"er etc.

9oo7 operations8 "ook T __.. __.. __.. __.. U

9oo7 operations8 his function does the various operations like issue of "ook0 return of "ook and adding ne! "ook into the file etc.

'--? 1(Add 4e! 'ooks 2(2ssue 'ook 8(.eturn 'ook =('ack *nter your option(1 *nter the details of the "ook 'ook 29 : ( 5no:(8 'no:(8 4o:(8 4ame : (physics Author : (Mani )u"lisher: (technical )rice ] (800 *nter your option(2 *nter 'ook id( gno:(1 "no:(1 no:(1 *nter Mem"ership id (1 2SSU* 9A *( 9ay(10 Month(2 3ear(200= .* U.4 9A *( 9ay(10 Month(8 3ear(200= '--? 2SSU*9 *nter your option(8 *nter 'ook id( gno:(2 "no:(2 no:(2 *nter Mem"ership id (2 2SSU* 9A *( 9ay(10 Month(2 3ear(200C .* U.4 9A *( 9ay(10 Month(8 3ear(200C '--? .* U.4*9(

ERROR TRACKING: *rrors per re&uirements specification page ( denoted "y *re&:8 *rrors per component ;design level ( denoted "y *design:= *rrors per component ;code level ( denoted "y *code:0

You might also like