Return to site

Sawsan Anjari - (Python 1 Course - Fall 2024)

Food Machine

January 9, 2025

We have a fast food machine in a restaurant and we need to design its program on

Python so that the customer orders the type of food he wants from the menu and then

puts money in the machine, then it makes the food for this customer, and then asks the

customer if he wants to order something else or not (drinks or desserts) to make for

him.

Summary of Program Flow:

1. The program starts with a food order.

2. Once the food order is complete, the user is asked if they want to order more.

3. If they choose to continue, they can order drinks or desserts.

4. Payment is handled for each item, and appropriate messages are displayed for the

transaction.

5. The program ends when the user no longer wants to order anything.