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:
create a global instance of type BookInventory,
In the main method, provide a menudriven 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.
Use file IO operations to read the initial inventory from a file when the program starts
and save any changes back to the file before exiting.
Ensure that the program gracefully handles file related exceptions FileNotFound IO
exception, etc. and invalid user inputs.
Implement validation checks for user inputs eg ensure price and quantity are positive
numbers
You should handle cases such as duplicate book entries or attempting to delete a non
existent book.
Make sure the search functionality allows for caseinsensitive searches.
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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
