You are on page 1of 5

MAIN MENU

Start

Print book catalogue


page

User enters menu


choices

Yes
If book catalogue

If book search
No

Yes

No
If book borrowing
C

If visitor feedback
No

Yes

Yes

If about us
Print about us page

Yes

If admin only
No

No
Print exit message

End

Yes

FUNCTION 1: BOOK SEARCH


B

If by ID

User enters category


of books

Yes

User enters search


choices
No

If education
Yes

If by title
Yes

No
No

If adventure
Yes

User chooses to go
back to main menu

No
If fantasy

A
Yes

User enters book ID

No
If fiction
Yes

User enters book title


No
If drama
Yes

If available
No

No
User chooses horror

Yes
Print book summary
page

FUNCTION 2: BOOK BORROWING


C

User enters number


of books

No
If user wants to check
again
If true
No

User enters book ID

Yes

Yes

If available
Yes

User enters special


code

User enters matrix ID and


nickname

No
User enters matrix ID and
nickname

Print receipt with 7


days borrowing
period

Print receipt with 10


days borrowing
period

FUNCTION 3: VISITOR FEEDBACK

User enters desired


rating

If rating=1 ||
rating=2 || rating=3
Yes

Print reply message


WITHOUT special code

No

If rating=4 ||
rating=5
No

Yes

Print reply message


WITH special code

FUNCTION 4: ADMIN ONLY


E
Print list of borrowers

User enters task

User enters password


If delete borrower
Yes
If true
Yes

User enters menu


choices

No
If change borrower

No

If show list of
borrowers

No
Yes
Yes
User enters number
of borrower form the
list

No

User enters number


of borrower form the
list

If show rating
feedback
No

Delete user

Yes
Print list of feedback

If show list of borrowers


again
Yes

No

User enters new


name, matrix ID,
number of books,
and book IDs

You might also like