Table 1 shows the names and prices of the menu items served by the Blossom Café. Write a Python program (" L revenue and the menu items that sell under the daily average revenue. 1. . ) that computes revenue per item, the total daily revenue, the average daily Your program should maintain four lists to store the menu items, the price per item, the quantity sold daily for each item, and the daily revenue per item (price*quantity). Use initialization list to construct the item and price lists. The quantity list will contain random integers in the range 1 to 50. A sample run is given below: Menu item Price (OMR) Blossom Cafe Daily Sales Cake 0.550 Coffee 0.300 Item Price Quantity Revenue **** Iced coffee 0.250 Cake 0.550 48 26.400 Coffee Iced coffee Tea Spicy tea Sandwich 11.400 4.250 3.600 6.900 14.000 Теа 0.200 0.300 38 0.250 17 Spicy tea 0.300 0.200 18 Sandwich 0.500 0.300 23 Tablel: Menu items & prices 0.500 28 Total daily revenue = OMR 66.550 The average daily revenue = OMR 11.092 The items below the average daily revenue: Iced coffee 4.250 Tea Spicy tea 3.600 6.900
Table 1 shows the names and prices of the menu items served by the Blossom Café. Write a Python program (" L revenue and the menu items that sell under the daily average revenue. 1. . ) that computes revenue per item, the total daily revenue, the average daily Your program should maintain four lists to store the menu items, the price per item, the quantity sold daily for each item, and the daily revenue per item (price*quantity). Use initialization list to construct the item and price lists. The quantity list will contain random integers in the range 1 to 50. A sample run is given below: Menu item Price (OMR) Blossom Cafe Daily Sales Cake 0.550 Coffee 0.300 Item Price Quantity Revenue **** Iced coffee 0.250 Cake 0.550 48 26.400 Coffee Iced coffee Tea Spicy tea Sandwich 11.400 4.250 3.600 6.900 14.000 Теа 0.200 0.300 38 0.250 17 Spicy tea 0.300 0.200 18 Sandwich 0.500 0.300 23 Tablel: Menu items & prices 0.500 28 Total daily revenue = OMR 66.550 The average daily revenue = OMR 11.092 The items below the average daily revenue: Iced coffee 4.250 Tea Spicy tea 3.600 6.900
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 2 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education