> 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/code/week-13.md).

# Week 13

## Source Code

```lua
local myName = ""
print("Name: " .. myName)

-- Example 1


-- Example 2 and 3 inputs


-- Example 2


-- Example 3


-- Example 4


-- Example 5


-- Example 6


-- Example 7


-- Example 8


-- Example 9


-- Example 10

```

## w13problem1.lua

```lua
print("Problem 1")
```

## w13problem2.lua

```lua
print("Problem 2")
```

## w13problem3.lua

```lua
print("Problem 3")
```

## w13problem4.lua

```lua
print("Problem 4")
```

## w13problem5.lua

```lua
print("Problem 5")
```

## w13problem6.lua

```lua
print("Problem 6")
```

## w13problem7.lua

```lua
print("Problem 7")
```

## w13problem8.lua

```lua
print("Problem 8")
```

## w13problem9.lua

```lua
print("Problem 9")
```

## project1.lua

```lua
print("Name: ") -- add your name here
print("Project 1")
print("Title: Jungle Run")
local health = 80 -- initial health (physical or mental?)

print("Your plane has crashed and when you exit, you find yourself in a humid jungle,")
print("unsure if there are other people around.")
print()
print("Do you re-enter the plane or seek shelter elsewhere?")
print("1 - re-enter")
print("2 - seek shelter")
io.write("> ")
local choice=io.read("*n")
io.read() -- consuming new line
if choice == 1 then
    print("you chose to re-enter")
    health = health + 5
    print("Current Health: " .. health)
elseif choice == 2 then
    print("you chose to seek shelter")
    health = health + 10
    print("Current Health: " .. health)
else
    print("invalid choice")
end
```


---

# 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/code/week-13.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.
