R
Resham
Guest
We consider the registration of books, when the library receives books, they are first grouped according to their topic(e.g. history/physics/mathematics .....).
Each group is composed of a set of books put one on the top of others according to their arrival order. The librarian will register each group of books according to their arrival order. The books are registered starting by the first book on top of group until the last book of the group, then second group until the last group.
a) Give the suitable ADT to solve this problem
b) give the graphical representation of the ADT to show its structure.Label the diagram clearly.
c) Give pseudo code implementation of the following operations:
1) reception of a book.
2) registration of books.
Each group is composed of a set of books put one on the top of others according to their arrival order. The librarian will register each group of books according to their arrival order. The books are registered starting by the first book on top of group until the last book of the group, then second group until the last group.
a) Give the suitable ADT to solve this problem
b) give the graphical representation of the ADT to show its structure.Label the diagram clearly.
c) Give pseudo code implementation of the following operations:
1) reception of a book.
2) registration of books.