Write a Java code to create a menu of a library class by containing following bookinformation:1) Book accession number. 2) Name of the author of the book.3) Book title.4) Flag (Whether book is issued or not)In Menu, following functions must be defined.(i)Display book information(ii)Add a new book(iii)Display all the books in the library of a particular author(iv)Display the number of available books of a particular title(v)Issue a bookNote: If we issue a book, then its number gets decreased by 1 and if we add a book, its number getsincreased by 1. Use array of objects to store the information of the books and choose the datatypescorrectly. Perform all the functionality using Functions and creating objects main method.
Write a Java code to create a menu of a library class by containing following book
information:
1) Book accession number.
2) Name of the author of the book.
3) Book title.
4) Flag (Whether book is issued or not)
In Menu, following functions must be defined.
(i)Display book information
(ii)Add a new book
(iii)Display all the books in the library of a particular author
(iv)Display the number of available books of a particular title
(v)Issue a book
Note: If we issue a book, then its number gets decreased by 1 and if we add a book, its number gets
increased by 1. Use array of objects to store the information of the books and choose the datatypes
correctly. Perform all the functionality using Functions and creating objects main method.
Step by step
Solved in 2 steps