Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2 . Console Menu Implementa on ( Phase 2 ) The class WestminsterShoppingManager should display a menu in the console ( not in the GUI

2. Console Menu Implementaon (Phase 2)
The class WestminsterShoppingManager should display a menu in the console (not in the GUI) containing the
following management acons from which the manager can select one. You should have a menu with a list of opons
Add a new product to the system. It should be possible to add either electronics or clothing, with all the relevant
informaon (all the aributes defined in the relave class). You should consider that the system can have a maximum
of 50 products (5 marks).
Delete a product from the system, inserng the product ID. Display a message with the informaon of the product
(if it is electronics or clothing) that has been deleted and the total number of products le in the system (5 marks).
Print the list of the products in the system. For each product, print on the screen all the informaon (aributes
defined in the corresponding class) and say if it is electronics or clothing. The list should be ordered alphabecally
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 relave aributes. The next me
the applicaon starts, it should be able to read back all the informaon saved in the file and connue to use the
system (6 marks).

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

Intelligent Databases Object Oriented Deductive Hypermedia Technologies

Authors: Kamran Parsaye, Mark Chignell, Setrag Khoshafian, Harry Wong

1st Edition

0471503452, 978-0471503453

More Books

Students also viewed these Databases questions