Write a Python Code to Simulate Mobile Shopping

Assignment Task

Assume that a grocery shop is introducing shopping through mobile. The shop keeper will gets the list of items from the customer through whatsApp. After receiving the list he will prepare the bill for the customer based on the availability of the items. That is, the shopkeeper will check whether the item is available or not by checking the stock in the shop, if the item is available he will add that item to the bill otherwise he will add that item to another list called not-available list. Finally the shopkeeper will send the bill and the not available list to the customer for confirmation. Write a python code to simulate mobile shopping for a grocery shop to generate bill and not available list.

Hint : Create the stock list that contains item, unit price and available quantity.

Sample Input:

5 # Number of items in stock list

rice 45 65 # items, unit price, quantity available

dhal 23 12

tea 90 10

coffee 120 5

soap 45 6

{‘rice’: [’45’, ’65’], ‘dhal’: [’23’, ’12’], ‘tea’: [’90’, ’10’], ‘coffee’: [‘120’, ‘5’], ‘soap’: [’45’, ‘6’]} #display of items and available stock

3 # Number of items in the customer list

coffee 6 # item and required quantity

soap 2

rice 10

Sample Output:

[(‘soap’, ‘2’, 90), (‘rice’, ’10’, 450)] # Bill

Total Cost = 540 #Total amount

[‘coffee’] # Not-available list

This Engineering Assignment has been solved by our Engineering experts at Schooling Best. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+ Students in Australia, UK & US by helping them to score HD in their academics. Our Experts are well trained to follow all marking rubrics & referencing style.

Be it a used or new solution, the quality of the work submitted by our assignment experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.

GET HELP WITH YOUR HOMEWORK PAPERS @ 25% OFF

For faster services, inquiry about  new assignments submission or  follow ups on your assignments please text us/call us on +1 (251) 265-5102

Write My Paper Button

WeCreativez WhatsApp Support
We are here to answer your questions. Ask us anything!
👋 Hi, how can I help?
Scroll to Top