Question: We are going to make a JAVA program named Library Manager. The program manages books for a library (adding, removing, checking in/out, and so on).

We are going to make a JAVA program named Library Manager. The program manages books for a library (adding, removing, checking in/out, and so on). The main menu is following:

[

Add a new book

Remove a book (input ISBN)

Check out a book (input ISBN and the due date)

Check in a book (input ISBN)

Display all book details (along with their specialization)

Display all available book details

Display all checked-out books

Exit program

]

The main menu will repeat to display until the user select menu 8.

Each book has following properties such as ISBN, title, and so on (please see the next page). Please create a class Book consisting of the fields. Then, you have to ask such information of a book to a user when adding a new book. Please check if the input is valid or not.

In this program, ISBN is a key, which means an identifier of a book (i.e., we assume that there is only one book of the ISBN in this library, though its unrealistic in practice). When adding a new book, you have to check if there is the same ISBN already stored in the library. If so, you have to give an error message to a user and ask again to input a different ISBN.

[

Has an ISBN (10 digits): e.g., 1001234567

Has a title (string): e.g., C++ Programming Language

Has a type (string): e.g., textbook, magazine, journal, newspaper, novel, and other

Has a publisher (string): e.g., TAMUC

Has a page information (how many pages) (integer): e.g., 506

Has a price (float): e.g., 20.00

Has a publication year (integer): e.g., 2013

Has a status (integer): e.g., 0=available, 1=checked-out

Has a name who checked out the book (string): e.g., Tommy

Has a due date (Date): use Date structure

]

The Library manager may have a 1D array of Book object. You can define the maximum book number (e.g., 100) that the library can store.

You have to store the book data into a file and load the data when the program begins.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!