Question: Design a python program for following scenario: (15 A new restaurant is opened in your area. The management wants to develop digital billing system.
Design a python program for following scenario: (15 A new restaurant is opened in your area. The management wants to develop digital billing system. For this purposed, they ask you to develop python script for the same. The management provides you Item list and its price. Use python dictionary to save this data. Store the data in dictionary with Item_name as key and price as value. A customer can order from the given list of items in any quantity. You need to develop a python script which performed following tasks. I. Assume that item names in the given list are item1, item2, item3, item4, . ,item30. The price of cach item is in float. Write python code to generate this data and store in dictionary. (Use a random package of Page 1 of 2 CE661: Mobile Application Development Technologies python for this task). The price of the item must be in the range of 10.0 to 500.0 (Marks: 4] II. Calculate the billing amount for following orders individually and store them using appropriate data collection framework. [Marks: 4] Items ordered from Quantity Sr. No menu Item5 Item17 Order1: Item28 10 Item2 1 Item25 1 Order2: Item9 2 Item1 1 III. Display the bill information digitally on screen in properly readable format which should be shown as below for all the orders with complete details: [Marks: 7] Order ID: 0100001 Quantity Total Price Iteml price x 2 Item2 price x 5 Item name: Item5 2 Item17 5 Sum of all above price Total : [Figure: 1 Bill format] Order ID: Generate the Order ID randomly with first character is 'O' and remaining for remaining six character, generate the six digit long digits random number in the range of (0 to 999999).
Step by Step Solution
3.31 Rating (154 Votes )
There are 3 Steps involved in it
Digital Billing System 1 Item name and Price as import random ... View full answer
Get step-by-step solutions from verified subject matter experts
