Question: The LibraryRunner class is a Java class that represents the main class of a library management system. This class contains the main method, which


The LibraryRunner class is a Java class that represents the main class of a library management system. This class contains the main method, which is the entry point for the application. The main purpose of this class is to provide a text-based menu (this will be a command-line based interaction and not GUI) that allows students to interact with the library management system. This is a student facing system. The menu should include the following options: Register: This option registers a student in the library system. When this option is selected, the system will ask for the name of the student. Sort Books: This option allows the student to sort the books based on ISBN. Search Books: This option allows students to search for books in the library, given the ISBN. Borrow Book: This option allows students to borrow books from the library. When this option is selected the system will ask for the student's registration number and ISBN of the book. Return Book: This option allows students to return books to the library. When this option is selected the system should ask for the registration number of the student; once the registration number is entered it should display a list of all the books the student has borrowed. The system would then ask for the ISBN of the book to be returned. Once a book is returned, it should be removed from the borrowed books list and the quantity should be updated in the inventory. Show Inventory Stats: This option displays a chart (bar graph) that shows the number of available books in the library inventory for both fiction and non-fiction categories. You can use Java Swing or Java FX to create this screen. This option should create an InventoryChart object with a title and the stats to be displayed. Library.availableBooks() should give the needed stats and then invoke InventoryChart.displayGraph() to display the chart. InventoryChart This class is used to display the bar graph. Depending on the way you choose to create the GUI (Swing or FX), extend the appropriate classes. The attributes of this class are String title, int[] stats. Add getters and setters for both. The displayGraph method should make the GUI visible. It should be a single screen Ul with a bar chart and two bars of different colors. One bar should depict the number of available fiction books and the other bar should depict the number of available non-fiction books. LibraryManagementSystem The LibraryManagement System is an interface that represents the contract for a library management system. This interface defines four methods that a library management system should implement:
Step by Step Solution
There are 3 Steps involved in it
Answer Here are is a possible implementation for the textbased menu with 6 options import javautilScanner public class LibraryRunner public static void mainString args Scanner scanner new ScannerSyste... View full answer
Get step-by-step solutions from verified subject matter experts
