The LibraryRunner class is a Java class that represents the main class of a library management...
Fantastic news! We've Found the answer you've been seeking!
Question:
![](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2023/09/6503dfda71dd0_1694752728847.jpg)
![](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2023/09/6503dfe775696_1694752742453.jpg)
![](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2023/09/6503dffe22d22_1694752765011.jpg)
![](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2023/09/6503e010b537d_1694752783729.jpg)
![](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2023/09/6503e0184add5_1694752791334.jpg)
![](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2023/09/6503e0218d64f_1694752800507.jpg)
![](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2023/09/6503e02aa2623_1694752809560.jpg)
![](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2023/09/6503e03b697d0_1694752826330.jpg)
Transcribed Image Text:
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: 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:
Expert Answer:
Answer rating: 100% (QA)
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 the full answer
Related Book For
Management Accounting Information for Decision-Making and Strategy Execution
ISBN: 978-0137024971
6th Edition
Authors: Anthony A. Atkinson, Robert S. Kaplan, Ella Mae Matsumura, S. Mark Young
Posted Date:
Students also viewed these programming questions
-
Describe issues of healthcare provision during economic downturns. Consider some of the ethical issues presented by government financing. Explain with at least three hundred words
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Case Study: Quick Fix Dental Practice Technology requirements Application must be built using Visual Studio 2019 or Visual Studio 2017, professional or enterprise. The community edition is not...
-
The atomic mass of 14c is 14.003242 u. Show that the decay of 14C is energetically possible, and calculate the energy released in the decay.
-
What factors influence the need for moderate to high modification of goods and services that have sold well in the home country and will now be marketed overseas? Identify and describe three of the...
-
In Exercises find the x-values (if any) at which is not continuous. Which of the discontinuities are removable? f(x) = TT X 4 177, [x] < 1 |x 1 tan (x
-
What do we mean by stress? What are the distinguishing features of acute and chronic stress, and eustress and dystress? Does all stress result in negative consequences? LO5
-
Department of Crinkle Chips had 110,000 partially completed units in work in process at the end of March. All of the direct materials had been added to these units, but the units were only 68% of the...
-
Problem No.4 Warrior Corp., a calendar-year company, had sufficient retained earnings in 2020 as a basis for dividends, but was temporarily short of cash. Warrior declared a dividend of P100,000 on...
-
The Purple Company This project will give you an opportunity to apply your knowledge of accounting principles and procedures to a corporation. You will handle the accounting work of The Purple...
-
An income statement for Crandall's Bookstore for the first quarter of the current year is presented below: CRANDALL's BOOKSTORE Income Statement for the First Quarter of the Current Year Sales...
-
Vaporization of mixtures of hexane and octane. Using the T-x-y diagram (Figure 1) on the next page, determine the temperature, amounts, and compositions of the vapor and liquid phases at 1 atm for...
-
what should p&g do to replace lafley when he retires a second time? what actions should they take to prepare for the succession?
-
What do these terms mean? What would be the currencies (one at a time) from two total UN Member States (other than the EURO, USD, JPY, GBP, or CHF). What would be the foreign currencies and how they...
-
How do social identity processes, such as categorization, identification, and comparison, influence team cohesion and performance within complex organizational environments ?
-
How do calculate sales forecast and expense forecast for several years
-
certs per share. Construct the equity section of the lance shot at the end of the fret yow, propony labeled and in good conting The McGame Menorca Warned so you when the firm od 6.2 milion shares of...
-
In Problem use absolute value on a graphing calculator to find the area between the curve and the x axis over the given interval. Find answers to two decimal places. y = x 3 ln x; 0.1 x 3.1
-
For each of the following products, suggest three measures of quality: a. Television set b. University course c. Meal in an exclusive restaurant d. Carryout meal from a restaurant e. Container of...
-
Organizations in the public and nonprofit sector, such as government agencies and charitable social service entities, have financial systems that budget expenses and monitor and control actual...
-
Why do organizations allocate revenues to responsibility centers?
-
The International Licensing Industry Merchandisers Association (LIMA; www.licensing.org) is an organization with offices worldwide. It supports merchandise licensing through education, networking,...
-
Suppose you are an international entrepreneur and want to open your own franchise somewhere in Europe. You decide to conduct research to identify the most promising franchise and learn how to become...
-
What are the advantages and disadvantages of licensing? LO.1
![Mobile App Logo](https://dsd5zvtm8ll6.cloudfront.net/includes/images/mobile/finalLogo.png)
Study smarter with the SolutionInn App