Modify the Bookstore Program to include the following additional functionality: o Add an Add button to the GUI. When clicked, the user should be allowed to enter the ISBN, title, author, publisher, year published and the price. The new inventory item should be sorted and then displayed. o Add a Delete button to the GUI. When clicked, the current inventory item should be removed from the inventory. User should receive confirmation of the deletion. The next item in the inventory should be displayed. o Add a Modify button to the GUI. When clicked, the user should be allowed to modify the title, author, publisher, year published and the price. The modified inventory item should be displayed. o Add a Save button to the GUI. When clicked, the entire inventory should be saved to C:datait215bookinventory.dat. Note: Exception handling should be used to create the directory and file if necessary. o Add a Search button to the GUI. When clicked, the user should be allowed to search for an item in the inventory by the title. If the book is not found, the GUI should display an appropriate error message. If the product is found, the GUI should display that product’s information in the GUI.

The Bookstore Program can be modified to include several additional functionalities, as specified. These functionalities are designed to enhance the user experience and provide more flexibility in managing the bookstore’s inventory.

Firstly, an “Add” button needs to be added to the graphical user interface (GUI). When the user clicks on this button, they should be allowed to enter the details of a new inventory item, such as the ISBN, title, author, publisher, year published, and price. Once the information is entered, the new inventory item should be sorted and displayed. This allows for easy addition of new items and ensures that the inventory is presented in a sorted manner.

Next, a “Delete” button should be incorporated into the GUI. When the user clicks on this button, the current inventory item should be removed from the inventory. It is important to provide the user with confirmation of the deletion to avoid accidental removal of items. After deletion, the next item in the inventory should be displayed, ensuring smooth navigation through the inventory.

Additionally, a “Modify” button should be included in the GUI. When clicked, this button allows the user to modify the details of an inventory item, such as the title, author, publisher, year published, and price. After modification, the updated item should be displayed in the GUI. This functionality enables easy editing of item details, providing flexibility in maintaining accurate information.

To facilitate data storage, a “Save” button should be incorporated into the GUI. When clicked, this button saves the entire inventory to a specific file location, such as “C:datait215bookinventory.dat”. Exception handling should be implemented to handle cases where the directory or file does not exist, creating them if necessary. This functionality ensures that the inventory data is preserved and can be easily retrieved for future use.

Lastly, a “Search” button should be added to the GUI. When clicked, this button allows the user to search for an item in the inventory based on its title. If the book is found, the information should be displayed in the GUI. If the book is not found, an appropriate error message should be displayed. This search functionality enables quick and efficient retrieval of specific inventory items.

By incorporating these additional functionalities into the Bookstore Program, the user can add, delete, modify, save, and search for items in the inventory with ease. These enhancements provide a more comprehensive and interactive experience, making the program more user-friendly and efficient in managing the bookstore’s inventory.

Need your ASSIGNMENT done? Use our paper writing service to score better and meet your deadline.


Click Here to Make an Order Click Here to Hire a Writer