Design a python program for following scenario: (15 A new restaurant is opened in your area....
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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). 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).
Expert Answer:
Answer rating: 100% (QA)
Digital Billing System 1 Item name and Price as import random ... View the full answer
Related Book For
Principles of Information Systems
ISBN: 978-1133629665
11th edition
Authors: Ralph Stair, George Reynolds
Posted Date:
Students also viewed these computer engineering questions
-
Design a python program solution that prints smiley and frowny faces until the user quits. The user should see a menu like this: (S)miley (F)rowny (Q)uit Make the algorithm print either: A smiley...
-
X Question 8 QUESTION 8-FINANCE/QUALITY A company that manufactures industrial wind turbine units use EN8 mild steel tubing in their production. Their production figures and customer orders suggested...
-
Write a MATLAB program in a script file that calculate the average, standard deviation, and median of a list of grades as well as the number of grades on the list. The program asks the user (input...
-
Under which of the following circumstances would an auditor be most likely to intensify an challenging examination of a $500 imprest petty cash fund a. Reimbursement occurs twice each week. b. The...
-
To: [Your name] From: Supervising Attorney Re: United States v. Canter; armed bank robbery with a dangerous weapon We have been appointed to represent Eldon Canter in the case of United States v....
-
A 90% confidence interval for the population proportion is _______. a. (0.761, 0.820) b. (0.125, 0.188) c. (0.755, 0.826) d. (0.130, 0.183) According to a Field Poll, 79% of California adults (actual...
-
Why might a plaintiff wish to serve a demand letter on the defendant before filing a lawsuit?
-
A horizontal cylindrical tank 2.20 m in diameter is half full of water. The space above the water is filled with a pressurized gas of unknown refractive index. A small laser can move along the curved...
-
2. 3. What is the problem at GWRC and what key variables are impacting the company's organizational success? How should the company respond to its current challenges and what core competencies and...
-
Three different analytical methods are compared for determining Ca in a biological sample. The laboratory is interested in knowing whether the methods differ. The results shown below represent Ca...
-
Horton Housewares' accounts receivable decreased during the year by $15.0 million. Required: What is the amount of cash Horton received from customers during the reporting period if its sales were...
-
Following are the proportions of the United States population that is female for five age groups. a. Is this a relative frequency table? Explain why or why not? b. Would it be appropriate to...
-
What connections exist between the current account and the capital account?
-
What were the key accomplishments of the Bretton Woods conference?
-
What are the primary accounts of the balance payments?
-
What determines the demand for any given currency in the foreign-exchange market?
-
You are called by the kingdom of Wakanda to determine whether a new vibranium manufacturing project is economically desirable. This project will require $500,000,000 to build a plant in the US with...
-
Which one of the following anhydrous chloride is not obtained on direct heating of its hydrated chloride? (A) BaCl2 (B) CaClz (C) MgCl2 (D) SrCl2
-
Identify the basic components of an expert sys- tem and describe the role of each.
-
What is an eight-core processor? What advantages does it offer users over a single- core processor? Are there any potential disadvantages?
-
What is a computer-based information system? What are its components?
-
To what population does the answer to Exercise 19.3 generalize? Exercise 19.3 I have a theory that if you ask participants to sort one-sentence characteristics of people (e.g., I eat too fast) into...
-
Following up the study referred to in Exercise 19.5, Hraba and Grant (1970) repeated the Clark and Clark study. The studies were not exactly equivalent, but they were close enough and the results are...
-
Combine the data from Exercises 19.5 and 19.6 into a two-way contingency table and run the appropriate test. How does the question that the two-way classification addresses differ from the questions...
Study smarter with the SolutionInn App