Console Menu Implementation (Phase 2)
The class holalShoppingManager should display a menu in the console (not in the GUI) containing the following management actions from which the manager can select one. – You should have a menu with a list of options
• Add a new product to the system. It should be possible to add either electronics or clothing, with all the relevant information (all the attributes defined in the relative class). You should consider that the system can have a maximum of 50 products.
• Delete a product from the system, inserting the product ID. Display a message with the information of the product (if it is electronics or clothing) that has been deleted and the total number of products left in the system.
• Print the list of the products in the system. For each product, print on the screen all the information (attributes defined in the corresponding class) and say if it is electronics or clothing. The list should be ordered alphabetically according to the product ID.
• Save in a file the list of products that have been added to the system, with all the relative attributes. The next time the application starts, it should be able to read back all the information saved in the file and continue to use the system.