Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a PYTHON program to prepare a menu for a restaurant customer. The customer will input his/her budget, and the program will compute their bill

Write a PYTHON program to prepare a menu for a restaurant customer. The customer will input his/her budget, and the program will compute their bill based on the following:

The customer must order a main dish (15TL).

If they have money remaining, a starter, dessert or both will be added to their menu, depending on the remaining budget. (Starter costs 10 TL, Dessert costs 8 TL)

The program will display the final bill, as well as their remaining budget.

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Sample Run: Enter budget: 24 Main dish added. Budget not sufficient for starter... Dessert added. Total Meal Cost: 23 Remaining Budget: 1

Sample Run: Enter budget: 50 Main dish added. Starter added. Dessert added. Total Meal Cost: 33 Remaining Budget: 17

Sample Run: Enter budget: 28 Main dish added. Starter added. Budget not sufficient for dessert... Total Meal Cost: 25 Sample Run: Enter budget: 12 More money needed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Expert Performance Indexing In SQL Server

Authors: Jason Strate, Grant Fritchey

2nd Edition

1484211189, 9781484211182

Students also viewed these Databases questions

Question

Describe three utility services that a DBMS should provide.

Answered: 1 week ago