> 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/final-project.md).

# Final Project

## finalproject.lua

```lua
function main()
    local done = false
    while not done do
        print("Welcome to my College Cost Calculator")
        print("Menu")
        print("1 - Community College") -- replace with the name of your community college
        print("2 - Public Four Years College") -- replace with the name of your public four years college
        print("3 - Private Four Years College") -- replace with the name of your private four year scollege
        print("4 - Public/Private Four Years College") -- replace with the name of your public/private college
        print("5 - How much is AP CSP worth?")
        print("6 - Loan Repayment Calculator")
        print("7 - Quit")
        io.write("Choice: ")
        local choice = string.upper(io.read())
        if choice == "1" then
            -- community college function call


        elseif choice == "2" then
            -- public four years function calls


        elseif choice == "3" then
            -- private four years college function calls


        elseif choice == "4" then
            -- public/private college function calls


        elseif choice == "5" then
            -- how much is CSP worth function call


        elseif choice == "6" then
            -- loan repayment calculator function call


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

-- define Community College Tuition Function


-- define College 1 Tuition Function


-- define College 1 Housing Function


-- define College 1 Meals Function


-- define College 1 About Function


-- call to main function, do not delete!
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/final-project.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.
