The Acme Retail Warehouses has 2 magazines in the city.
Warehouse 1 holds hardware representative that are reserved to stores.
Warehouse 2 holds grocery aces that are reserved to grocery stores.
You scarcity to produce 2 rankes.
The leading rank is the magazine.
It has attributes Precipitation (street oration you produce it), image of storage (hardware or grocery), and a schedule of catalogue aces (objects of the assist rank discussed underneath).
The rank should include accessors and mutators as courteous as an __str__.
The assist rank is catalogue.
It has attributes ID, Description, Quantity, Cost. The rank should include accessors, mutators, an __str__, and a regularity to investigate and come-back the retail figure. All aces keep a 20% markup.You scarcity to transcribe 2 programs. Program 1 reads basis from 2 improves.
hardware.txt includes hardware aces that are stored in Magazine 1. The basis are comma delimited and include the subjoined fields: ID compute, Description, Quantity, Cost. grocery.txt includes grocery aces that are stored in Magazine 2. The basis are comma delimited and include the subjoined fields: ID compute, Description, Quantity, Cost.
For each improve, produce a magazine sight.
You afford the precipitation and image of storage for each sight.
Use the basis from the improves to produce the catalogue sight schedule.
Both improves should be saved using the Pickle module.Program 2 is a menu driven program.
The user should be asked which magazine they achieve be agoing after a while and then a menu should be ostentationed after a while the subjoined choices:
1. Add Ace – allows the user to add an ace to the catalogue (you afford the basis)
2. Delete Ace – allows the user to delete an ace from the catalogue (receipts the knowledge)
3. Change muchness – allows the user to add or deduct from the catalogue
4. Change figure – allows the user to alter the figure of an ace in the catalogue
5. Print ace – the user would invade an ID and the program achieve ostentation the catalogue knowledge for that ID