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

# Project 5

## Source Code

```lua
-- define main function
function main()
    print("Main Function")
    -- create lists that will store the order
    -- order names, order quantity, order prices


    local done = false
    local choice = nil
    while not done do
        print("Menu")
        print("R - Restaurant Information")
        print("A - Appetizers")
        print("E - Entrees")
        print("D - Desserts")
        print("B - Beverages")
        print("P - Place Order")
        print("Q - Quit")
        io.write("Choice: ")
        choice = io.read()
        if choice == "R" then
            -- call Restaurant Information Function

        elseif choice == "A" then
            -- call Appetizers Function

        elseif choice == "E" then
            -- call Entrees Function

        elseif choice == "D" then
            -- call Desserts Function

        elseif choice == "B" then
            -- call Beverages Function

        elseif choice == "P" then
            -- call Place Order Function

        elseif choice == "Q" then
            print("Quitting!")
            done = true
        else
            print("Invalid Choice")
        end
    end
end

-- define Restaurant Information Function


-- define Appetizers Function


-- define Entrees Function


-- define Desserts Function


-- define Beverages Function


-- define Place Order Function


-- call main function
main()

```


---

# 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:

```
GET https://www.csprinciples.com/pctvs/project-5.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
