Question: Write a menu - driven program for De Anza College Food Court. ( You need to use functions! ) Display the food menu to a
Write a menudriven program for De Anza College Food Court. You need to use functions!
Display the food menu to a user Just show the options' names and prices No need to show the Combos or the details!
Use numbers for the options and example to exit. At the beginning of the orderif the user enters your code should not ask any other questions, just show a message like "Thank you, hope to see you again!"If the user enters at the beginning of the order, the code should not ask any other questions just a message like a thank you message. But if the user enters at the end of the order, the code should ask if they are a student or a staff, and execute the rest of the requirements.
Ask the user what heshe wants and how many of them. Check the user inputs AND usethestripfunctionto strip your inputsif needed
Keep asking the user until heshe chooses the exit option.
You can pass quantity quantity quantity quantity & quantity to save the quantities of the orders
You can any data structures that you know but you don't have to for the midterm part
Calculate the price.
Ask the user whether heshe is a student or a staff. There is no tax for students and a tax for staff. Add the tax price to the total price.
Display the bill to the user. The bill includes:
The food itemsThe quantitiesThe cost of themThe total before taxTax AmountTotal price after tax
You can haveyour own designbut you need to have the main function and get started from the main function.
For example:
def main:
displayMenu
displayBill
main
or
if namemain:
main
The name of functions is also up to your design but the names should show what the functions do
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
