Answered step by step
Verified Expert Solution
Link Copied!

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):

image text in transcribed

image text in transcribed

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 case

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

Databases On The Web Designing And Programming For Network Access

Authors: Patricia Ju

1st Edition

1558515100, 978-1558515109

More Books

Students also viewed these Databases questions

Question

understand the key issues concerning international assignments

Answered: 1 week ago