Question: Implement a TestBookInventory driver class as follows: 2 . create a global instance of type BookInventory, 3 . In the main method, provide a menu

Implement a TestBookInventory driver class as follows:
2. create a global instance of type BookInventory,
3. In the main method, provide a menu-driven interface for users to interact with the
inventory system. Each menu option would trigger a method in the BookInventory class.
See sample output for menu options and a logical execution of your program.
4. Use file I/O operations to read the initial inventory from a file when the program starts
and save any changes back to the file before exiting.
5. Ensure that the program gracefully handles file related exceptions (FileNotFound, I/O
exception, etc.) and invalid user inputs.
6. Implement validation checks for user inputs (e.g., ensure price and quantity are positive
numbers).
7. You should handle cases such as duplicate book entries or attempting to delete a non-
existent book.
8. Make sure the search functionality allows for case-insensitive searches.
9. Test your program thoroughly to ensure all functionalities work as expected.
Note: Feel free to reach out if you need further clarification or assistance with any aspect of

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 Programming Questions!