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 10:20
Shown below is the start of a coding region within the fist exon of a gene. 5'--3' 3'--5' how many cas9 pam sequences are present?
Answers: 1
question
Computers and Technology, 23.06.2019 14:30
The option enables you to modify a slide element in most presentation applications.
Answers: 2
question
Computers and Technology, 24.06.2019 11:20
Print "censored" if userinput contains the word "darn", else print userinput. end with newline. ex: if userinput is "that darn cat.", then output is: censoredex: if userinput is "dang, that was scary! ", then output is: dang, that was scary! note: if the submitted code has an out-of-range access, the system will stop running the code after a few seconds, and report "program end never reached." the system doesn't print the test case that caused the reported message.#include #include using namespace std; int main() {string userinput; getline(cin, userinput); int ispresent = userinput.find("darn"); if (ispresent > 0){cout < < "censored" < < endl; /* your solution goes here */return 0; }
Answers: 3
question
Computers and Technology, 24.06.2019 17:40
Write a program that begins by reading in a series of positive integers on a single line of input and then computes and prints the product of those integers. integers are accepted and multiplied until the user enters an integer less than 1. this final number is not part of the product. then, the program prints the product. if the first entered number is negative or 0, the program must print “bad input.” and terminate immediately
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, 18.03.2021 02:50
question
Mathematics, 18.03.2021 02:50
question
Mathematics, 18.03.2021 02:50
question
Mathematics, 18.03.2021 02:50
question
English, 18.03.2021 02:50
question
French, 18.03.2021 02:50
Questions on the website: 13722367