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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 19:50, rosyposy43
Write a car class having two private member variables called tank and speed. write public methods called pumpgas and gofast. the method pumpgas gets an integer for gas that must be pumped. that value needs to be added to tank (no more than 20 gallons). it must return the amount of gas that is purchased ($4 per gallon). the method gofast should increase the speed by 5 each time it is called. write a constructor for the above class that initialized both variables to zero. write a tostring to display both the tank and speed when the car is printed. modify the car class to implement the interface comparable and an interface called carinter having the public methods in carinter. write the main program to create an array of size 5 of type car. create 5 car objects having each location of the array to refer to one of the cars. test the pumpgas, gofast, equals method on the array items. write an enhanced loop to print all the car values (using a tostring written last time).write a generic method to find the minimum of four items. pass int, double, char, string and car objects to test this method.
Answers: 1
image
Computers and Technology, 23.06.2019 17:00, quanharris2k19
The camera still is bad even with the new iphone xr and especially in low light it is even worst because you can see the pixels more if its in low light. if all you apple customers want apple to fix this then lets fill there feedback with complaints about the
Answers: 1
image
Computers and Technology, 24.06.2019 08:00, ineemorehelp
Arah has entered data about football players from team a and team b in a worksheet. she enters names of players from team a with details about each player in different columns of the worksheet. similarly, she enters details of all the players from team b. which option will her view the data for team a and team b in two separate sections after printing? a. page break view b. freeze pane view c. split screen view d. full screen view e. zoom out view
Answers: 1
image
Computers and Technology, 24.06.2019 11:20, isabelperez063
Every telecommunication setup uses two devices: one device to transmit data and one device to receive data. which device transmits frequencies to mobile phones? towers transmit frequencies to mobile phones.
Answers: 1
You know the right answer?
Achinese restaurant has two types of dinner combos for customers to choose. a regular dinner combo i...

Questions in other subjects:

Konu
Mathematics, 23.02.2021 07:30
Konu
Mathematics, 23.02.2021 07:30
Konu
Biology, 23.02.2021 07:30
Konu
Mathematics, 23.02.2021 07:30
Konu
Mathematics, 23.02.2021 07:30
Konu
Chemistry, 23.02.2021 07:30