Answered step by step
Verified Expert Solution
Question
1 Approved Answer
plese answer it asap 7 Develop an interactive python program for a simple super-market application with the following requirements. Item codes and Description (Use dictionary):
plese answer it asap
7 Develop an interactive python program for a simple super-market application with the following requirements. Item codes and Description (Use dictionary): 1-> Lux 2-> Cooking oil 3-> Pepper 4-> Sugar 5-> Comfort liquid h Test case:1 Algorithm: a) Start the program. b) Read customer name. c) Read item codes (of items to be purchased). Customers can give the item codes in any order. d) Refer the item_code_description dictionary and add the details i.e. customer name & item description (not the item code) to the purchase_list. e) Repeat steps (a) (b), (c) for 'n' number of customers. Assume 'n' customers will be purchasing in a particular day. f) Print the final purchase_list at the end of the day. g) Also look into the purchase_list and find the item(s) details, which was/were purchased by all customers in a particular day. h) Stop the program. Test case:1 Input: For n=3 customers: Enter customer name: Raju Enter the items purchased: 4,2,3 Enter customer name: Meena Enter the items purchasedi 1,5,2 Enter customer name: A ped Enter the items purchased: 2,1 1-> Lux 2-> Cooking oil 3-> Pepper 4-> Sugar 5-> Comfort liquid Output: Purchase_list=['Cust-Raju', 'Sugar', 'Cooking oil', 'Pepper', 'Cust-Meena', 'Lux', Comfort liquid', 'Cooking oil', 'Cust-Ahmed', 'Cooking oil', 'Lux' ] All three customers have purchased: Cooking oil Note: Print your signature in the output. Run the program for only one time but with different inputs (Other than the given test caseStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started