subject

Achinese restaurant has two types of dinner combos for customers to choose. a regular dinner combo includes main dish and soup. a deluxe dinner combo includes main dish, soup and appetizer. there are three main dish choices: sweet and sour pork ($7), sesame chicken ($8) or shrimp fried rice ($9). there are two soup choices: egg drop soup ($1.25) or wanton soup ($1.50). there are two appetizer choices: spring roll ($1.25) or chicken wing ($1.50). they need a program to place orders. you python project needs to follow these requirements:

(a) create a dinner_combo class for regular dinner combos. this class has three protected instance variables: main_dish, soup and total. define a choose_dish method to choose a main dish, a choose_soup method to choose a soup, and a displayorder method to display items ordered and total amount due.

(b) create a deluxe_dinner_combo class for deluxe dinner combos. this class is a derived class of the dinner_combo class. it has one additional protected instance variables: appetizer. define a choose_appetizer method to choose an appetizer, and a displayorder method to display items ordered and total amount due.

(c) in the main module, ask user to choose either regular or deluxe dinner combo. create an object and call its methods to input food items and display information of the order.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 06:30
This technology is used to produce high-quality documents that look good on the computer screen and in print.
Answers: 1
question
Computers and Technology, 23.06.2019 07:00
1. you have a small business that is divided into 3 departments: accounting, sales, and administration. these departments have the following number of devices (computers, printers, etc.): accounting-31, sales-28, and administration-13. using a class c private network, subnet the network so that each department will have their own subnet. you must show/explain how you arrived at your conclusion and also show the following: all available device addresses for each department, the broadcast address for each department, and the network address for each department. also, determine how many "wasted" (not usable) addresses resulted from your subnetting (enumerate them).
Answers: 3
question
Computers and Technology, 23.06.2019 17:00
The more powerful, 60 volt cables and the main power shut-off on an hev are both colored orange.
Answers: 1
question
Computers and Technology, 23.06.2019 20:50
3.11.3 quiz: comparing and analyzing function typesquestion 4 of 102 pointswhat can you say about the y-values of the two functions f(x) = 3x2-3 andg(x)=2* - 3?
Answers: 2
You know the right answer?
Achinese restaurant has two types of dinner combos for customers to choose. a regular dinner combo i...
Questions
question
English, 25.03.2020 05:27
question
Mathematics, 25.03.2020 05:27
Questions on the website: 13722363