Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2. ConsoleMenuImplementation(Phase2) The class WestminsterShoppingManager should display a menu in the console (not in the GUI) containing the following management actions from which the manager

2. ConsoleMenuImplementation(Phase2) The class WestminsterShoppingManager 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 (5 marks).

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 (5 marks).

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 (6 marks).

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 (6 marks).

3. GraphicalUserInterface(GUI)Implementation(Phase3)

Whilst the manager interacts with the system through the menu console, the client will interact with the system through a graphical user interface.

Open a Graphical User Interface (GUI) from the menu console you will have an additional option that the user can select to open the GUI.

Note: The GUI should look like the mock-up provided below. If your GUI appears different, no marks will be given. You should implement the GUI according to the following requests:

The user can select from a drop-down menu which type of product can be visualised (all, Electronics, or Clothes) (4 marks).

The user can visualise the list of products with relative information as displayed below. The user should be able to sort the list alphabetically. You should use a table to display this information on the GUI. (6 marks).

The user can select a product and add it to a Shopping Cart. When implementing these functionalities, you need to comply with the following requirements:

The items with reduced availability (less than 3 items available) should be in red on the table. (2 marks). When the user selects the product, the product details (all the information related to the product) should appear in a panel below the table (5 marks).

The user can add the item to the shopping cart by clicking the relative button. The user can visualise the shopping cart by clicking the Shopping Cart button. The user can select another item and keep adding items to the shopping cart (6 marks). The shopping cart will show the list of products and the final price (6 marks). To calculate the final price, the system will apply the following discounts:

20% discount when the user buys at least three products of the same category. 10% discount for the very first purchase. in order to implement this functionality, you will have to keep the history of the purchases made by each client. You can do this in different ways: if you would like to add extra classes, you can do so, and this will be reflected in your class diagram too.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data And Databases

Authors: Jeff Mapua

1st Edition

1978502257, 978-1978502253

More Books

Students also viewed these Databases questions