Write a python program to display a receipt of ordered foods by a customer at a...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a python program to display a receipt of ordered foods by a customer at a restaurant. The receipt should contain customer name, appetizer and its price, main meal and its price, dessert and its price and total price. Your program should have 4 global lists (appetizer, main meal, dessert, order) and the first three lists contain 5 foods with their prices. (add any food with any price that you like) (Hint: nested list) Define 3 functions for appetizer, main meal and dessert. Each function should show the list of corresponding foods with their prices and the user should be able to add the desired food to "order" list. Write a python program to display a receipt of ordered foods by a customer at a restaurant. The receipt should contain customer name, appetizer and its price, main meal and its price, dessert and its price and total price. Your program should have 4 global lists (appetizer, main meal, dessert, order) and the first three lists contain 5 foods with their prices. (add any food with any price that you like) (Hint: nested list) Define 3 functions for appetizer, main meal and dessert. Each function should show the list of corresponding foods with their prices and the user should be able to add the desired food to "order" list.
Expert Answer:
Answer rating: 100% (QA)
Global lists appetizers salad 60soup 499bruschetta899 spring rolls 698stuffed mushrooms 90 mainmeals ... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
You are required to write a Python program that will manage character (heroes and villain) information. Character (hero and villain) information will be stored in a text file that will be read in...
-
CANMNMM January of this year. (a) Each item will be held in a record. Describe all the data structures that must refer to these records to implement the required functionality. Describe all the...
-
The following data are for four independent process-costing departments. Inputs are added uniformly. Required: Compute the equivalent units of production for each of the preceding departments using...
-
Stanmore Corporation makes a special-purpose machine, D4H, used in the textile industry. Stanmore has designed the D4H machine for 2017 to be distinct from its competitors. It has been generally...
-
Henderson Floor Coverings reported the following summarized data at December 31, 2016. Accounts appear in no particular order, and all have normal balances. Service Revenue ...... $ 38,000 Equipment...
-
In 2001, the City of New York and the Dormitory Authority of the State of New York (DASNY) entered into an agreement to build a forensic biology laboratory in Manhattan. Per the agreement, DASNY...
-
Milan Statuary manufactures bust statues of famous historical figures. All statues are the same size. Each unit requires the same amount of resources. The following information is from the static...
-
The December 3 1 , 2 0 2 4 , adjusted trial balance for the Blueboy Cheese Corporation is presented below. Account Title Debits Credits Cash $ 2 1 , 0 0 0 Accounts receivable 3 0 0 , 0 0 0 Prepaid...
-
The Alfredo Fragrance Company produces only one product, a perfume called Hint of Elegance. Hint of Elegance consists of two secret ingredients blended into an exclusive fragrance, which is marketed...
-
Based on the assessment of Rent The Runway's business in January 2010, if you were Hyman or Fleiss, would you proceed with scaling (accelerated business growth) at this time? What are the...
-
Your CEO from Assignment 1 bought you argument and has agreed that some type of crisis communications preparation is necessary. However, she has decided that is really not something that she needs to...
-
How many US dollars does a US importer need to pay for an invoice of 1 Million Yen when the price of 1 Yen is $0.006? If US dollar becomes stronger, will it hurt our export or our import?
-
How did the outcomes of Van Orden v. Perry, Minersville School District v. Gobitis, and Board of Education v. Barnette illustrates the balance between allowing freedom of religion and avoiding...
-
What did the term bureaucracy originally mean? What does the word bureaucracy generally signify to the public today? Give an example of a public agency that was highly bureaucratic in nature but is...
-
4.12. How much will $5,000 be worth in 10 with 6% interest compounded continuously? o years 4.13. How much money must you deposit now to have $5,000 in five years at 6% compounded continuously? 4.14....
-
Assuming Dilbert collects a $10,000 ($8,000 principal and $2,000 interest) payment in the year following the year of sale, calculate the amount of income recognized under the installment sale method.
-
After graduating from college and working a few years at a small technology firm. Preet scored a high-level job in the logistics department at Amex Corporation. Amex sells high-quality electronic...
-
How do you suppress the print functions ending newline?
-
The symbols >,
-
What will the following code display? for number in range(2, 6): print(number)
-
Let \(\left\{\mathbf{X}_{n}ight\}_{n=1}^{\infty}\) be a sequence of \(d\)-dimensional random vectors where \(\mathbf{X}_{n}\) has distribution function \(F_{n}\) for all \(n \in \mathbb{N}\) and let...
-
Prove the converse part of the proof of Theorem 4.17. That is, let \(\left\{\mathbf{X}_{n}ight\}_{n=1}^{\infty}\) be a sequence of \(d\)-dimensional random vectors and let \(\mathbf{X}\) be a...
-
Let \(\left\{X_{n}ight\}_{n=1}^{\infty}\) and \(\left\{Y_{n}ight\}_{n=1}^{\infty}\) be sequences of random variables where \(X_{n}\) has a \(\mathrm{N}\left(\mu_{n}, \sigma_{n}^{2}ight)\)...
Study smarter with the SolutionInn App