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 20:00
What is the term for water wave that is created by an underwater earthquake
Answers: 1
question
Computers and Technology, 22.06.2019 22:00
Researchers measured the data speeds for a particular smartphone carrier at 50 airports. the highest speed measured was 78.1 mbps. the complete list of 50 data speeds has a mean of x overbarequals16.11 mbps and a standard deviation of sequals18.65 mbps. a. what is the difference between carrier's highest data speed and the mean of all 50 data speeds? b. how many standard deviations is that [the difference found in part (a)]? c. convert the carrier's highest data speed to a z score. d. if we consider data speeds that convert to z scores between minus2 and 2 to be neither significantly low nor significantly high, is the carrier's highest data speed significant? a. the difference is nothing mbps.
Answers: 3
question
Computers and Technology, 23.06.2019 00:30
If joey was single and his taxable income was $9,500, how much would he pay in taxes each year?
Answers: 1
question
Computers and Technology, 23.06.2019 16:00
Kenny works with an it company. his company is about to launch new software in the market. he has to ensure that this new software is functional and meets all of the quality standards set up at the planning stage. which job profile is kenny likely to have? kenny is likely to have the job profile of a blank .
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
Mathematics, 16.10.2019 04:30
question
Mathematics, 16.10.2019 04:30