Build a state diagram for the “book” based upon the following information of the library.
The member of the library can borrow a book for number of days as per the policy and return it. On returning a book member must pay a fine if the book is returned after a due date. If the book is not available, then member ask to reserve it so that when it is available, he/she can be informed. When a book is reserved then the member who reserved it either can borrow it or ask for a cancellation as it is not needed any more. When a new book is purchased then it is added to system so the members can use and borrow