subject

Create a program that calculates the cost of a meal and drink in a restaurant. Display a small menu with three meals, three drinks and the price for each. The program should have the following functions: my_restaurant(): This function displays the menu and asks the user to choose a meal and a drink. It also calls the my_meal() and my_beverage() functions. my_meal(): This function allows the user to choose a meal and return the choice. my_beverage(): This function allows the user to choose a drink, size small, medium or, large, and returns the choice. meal_cost(): This function receives a parameter that represents the meal choice. Calculate the cost of the meal based on the users choice. beverage_cost() This method receives two parameters that represents the drink and size. Calculate the cost of the beverage based on the users choice. total_cost() This function calculates the grand total for the meal and drink. Calculate the sales tax at 6%.​

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 17:00, ayoismeisjjjjuan
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 can apple do to fix this issue?
Answers: 1
image
Computers and Technology, 24.06.2019 01:00, kkruvc
Mastercard managers are motivated to increase (1) the number of individuals who have and use a mastercard credit card, (2) the number of banks and other clents who issue mastercards to customers and/or employees, and (3) the number of locations that accept mastercard payments. discuss how mastercard could use its data warehouse to it expand each of these customer bases.
Answers: 3
image
Computers and Technology, 24.06.2019 08:30, trashellyoung
Why might you choose to create a functional resume
Answers: 1
image
Computers and Technology, 24.06.2019 13:30, livie225
Type the correct answer in the box. spell all words correctly. what is the default margin width on all four sides of a document? by default, the document has a margin on all four sides.
Answers: 1
You know the right answer?
Create a program that calculates the cost of a meal and drink in a restaurant. Display a small menu...

Questions in other subjects:

Konu
Mathematics, 22.06.2019 11:50