> For the complete documentation index, see [llms.txt](https://www.pythonclassroom.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.pythonclassroom.com/python-projects/restaurant-project.md).

# Restaurant Project

You work at a restaurant and want to keep track of the items in the order and how much the order is.  Create a list named items and cost.

```python
# My Name
print('Welcome to my Restaurant Project')
print('By My Name')
items = []
cost = [0]
done = False
while not done:
    print("S - Sandwich")
    print("B - Beverage")
    print("F - Fries")
    print("C - Cake")
    print("T - Total")
    print("Q - Quit")
    choice = input(":: ")
    if choice == "S":
        print("Sandwich Menu")
    elif choice == "Q":
        print("Quit!")
        done = True
    else:
        print("Invalid Choice")
```

| Menu Item | Description                                                                                                                                                                                                                                                                                                         |
| --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| S         | <p>Ask the user for a type of sandwich they want. </p><p></p><p>Add this selection to the items and cost lists, appropriately.</p><p></p><p>Examples:</p><p>Chicken $5.25 </p><p>Beef $6.25 </p><p>Turkey $4.00 </p><p>Veggie $7.00 </p><p>Tofu $5.75 </p>                                                          |
| B         | <p>Ask the user whether they would like a beverage (yes, no).</p><p>If they say yes, ask what size beverage they would like.</p><p></p><p>Examples:</p><p>Small $1.00 </p><p>Medium $1.75 </p><p>Large $2.25</p>                                                                                                    |
| F         | <p>Display the choices and prices.</p><p></p><p>If they say “small”, ask the user whether they’d like to mega-size their fries (yes, no).  If the user inputs yes to mega-size, give them large fries at the small fries price.</p><p></p><p>Examples:</p><p>Small $1.00 </p><p>Medium $1.50 </p><p>Large $2.00</p> |
| C         | <p>Display the choices and prices.</p><p></p><p>Examples:</p><p>Coconut Mousse $2 </p><p>Dulce de Leche Chantilly $2.50 </p><p>Carrot Cake $3.00 </p><p>Chocolate Chip $1.50 </p><p>Tres Leches $3 </p>                                                                                                             |
| T         | Print the items ordered and the total amount.                                                                                                                                                                                                                                                                       |

{% embed url="<https://repl.it/@MatthewCheng1/Restaurant-Game>" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://www.pythonclassroom.com/python-projects/restaurant-project.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
