ALGORITHM

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

ALGORITHM:

The various details of the book such as the Title, Author, Count,
Edition are entered in the book database.
Sub-module 2: bk_display()
DESCRIPTION
This module is used to display the book details.
OUTPUT:
1. Book Name
2. Book Author
3. Book Count
4. Book Edition
ALGORITHM:
1. Open the file “Book.dat”.
2. Read the contents from the file.
3. Display the contents of the file.
MODULE III: TRANSACTION
Sub-module 1: issue()
DESCRIPTION
This module is used to issue a book to a student.
INPUT:

1. Book Name
2. Student Roll number
3. Data(issue)
OUTPUT:
1. Book Issued
2. Change in database
ALGORITHM:
1.On valid entry of the roll number of the student and the
book name, the book is issued and necessary changes
made in the member and book databases .
VALIDATION:
1. To check the validity of the roll number
2. To check the validity of the book name
3. To check if the number hasn’t exceeded the total number of
tokens available for each student.
ERROR HANDLING:
Rejects the issue request on the failure of any one of the above
validation criteria.
Sub-module 2: bk_return()
DESCRIPTION
This module enables the student to return a book.
INPUT:
1. Book name
2. Student Roll number
3. Data (return)

OUTPUT:
1. Book return
2. Change in the databases
ALGORITHM:
1. On valid entry of roll number of the student and the book
name, the book return operation is performed and
necessary changes are made in the member databases and
the book database.
VALIDATION
1. To check the validity of the student’s roll number
2. To check the validity of the book name
ERROR HANDLING
Reject the return request on the failure of any of the above
validation criteria.
HARDW ARE AND SOFTWARE REQUIREMENTS
HARDWARE:
Pentium Processor
SOFTWARE:
Turbo C (Version 3)
ASSUMPTIONS AND DEPENDENCIES:
The software is effective on a stand-alone system.

You might also like