i need help writing program in python
The Acme Retail Magazines has 2 magazines in the city.
Magazine 1 holds hardware symbolical that are exclusive to stores.
Magazine 2 holds grocery individuals that are exclusive to grocery stores.
You demand to cause 2 assortes.
The primary assort is the magazine.
It has attributes Precipitation (street oration you communicate it), pattern of storage (hardware or grocery), and a schedule of schedule individuals (objects of the cooperate assort discussed adown).
The assort should hold accessors and mutators as polite as an __str__.
The cooperate assort is schedule.
It has attributes ID, Description, Part, Cost. The assort should hold accessors, mutators, an __str__, and a course to compute and revert the retail appraisement. All individuals invadetain a 20% markup.You demand to transcribe 2 programs. Program 1 reads facts from 2 improves.
hardware.txt holds hardware individuals that are stored in Magazine 1. The facts are comma delimited and hold the aftercited fields: ID compute, Description, Part, Cost. grocery.txt holds grocery individuals that are stored in Magazine 2. The facts are comma delimited and hold the aftercited fields: ID compute, Description, Part, Cost.
Restraint each improve, cause a magazine intent.
You afford the precipitation and pattern of storage restraint each intent.
Use the facts from the improves to cause the schedule intent 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 get be agoing with and then a menu should be exposeed with the aftercited choices:
1. Gather Individual – allows the user to gather an individual to the schedule (you afford the facts)
2. Delete Individual – allows the user to delete an individual from the schedule (profits the notification)
3. Substitute part – allows the user to gather or take from the schedule
4. Substitute appraisement – allows the user to substitute the appraisement of an individual in the schedule
5. Print individual – the user would invade an ID and the program get expose the schedule notification restraint that ID