Skip to content

Add buffet table labs to Unit 2. #421

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions units/2_unit/05_lesson/lab-buffet.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Buffet Table

You're ordering food at a buffet, and you can only get a few things. Assemble an order and enjoy.

## Requirements

* There must be at least 10 food items at the buffet.
* Each item is a single serving, so selecting an item must remove it from the buffet.
* A full order contains three food items.

## Example output

```
Welcome to the buffet!
You may choose three items for your plate. Here are your choices: mashed potatoes, fried rice, pot roast, bourbon chicken, General Tso's chicken, spanakopita, Thai yellow curry, fried tofu, bratwurst, and salad.

What is your first choice? pot roast
Your plate has: pot roast
The buffet now has: mashed potatoes, fried rice, bourbon chicken, General Tso's chicken, spanakopita, Thai yellow curry, fried tofu, bratwurst, and salad.

What is your second choice? spanakopita
Your plate has: pot roast, and spanakopita
The buffet now has: mashed potatoes, fried rice, bourbon chicken, General Tso's chicken, Thai yellow curry, fried tofu, bratwurst, and salad.

What is your third choice? mashed potatoes
Your plate has: pot roast, spanakopita, and mashed potatoes.
The buffet now has: fried rice, bourbon chicken, General Tso's chicken, Thai yellow curry, fried tofu, bratwurst, and salad.
```a
File renamed without changes.
15 changes: 10 additions & 5 deletions units/2_unit/05_lesson/lesson.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ Students will be able to...

* [2.05 Slide Deck](https://github.com/TEALSK12/2nd-semester-introduction-to-computer-science/raw/master/units/2_unit/slidedecks/Intro%20Python%202.05%20TEALS.pptx)
* [Do Now][]
* [Lab - Tic-Tac-Toe][] ([docx][]) ([pdf][])
* Labs:
* [Tic-Tac-Toe][] ([docx][]) ([pdf][])
* [Buffet][] ([Buffet docx][]) ([Buffet pdf][])
* [Associated Readings 2.5](https://tealsk12.github.io/2nd-semester-introduction-to-computer-science/readings.md#associatedreadings/2.5)
* Read through the Do Now, lesson, and lab so that you are familiar with the requirements and can assist students.

Expand Down Expand Up @@ -51,7 +53,7 @@ Students will be able to...
### 3. Lab

* Students practice slicing, adding, and removing elements from some given lists.
* Students create a single move Tic-Tac-Toe game.
* Students create a single move Tic-Tac-Toe game or a buffet table ordering program.

### 4. Debrief

Expand All @@ -67,6 +69,9 @@ Students will be able to...
There is also an opportunity for a quiz after the game loop lesson and before the project.

[Do Now]:do_now.md
[Lab - Tic-Tac-Toe]:lab.md
[pdf]: https://github.com/TEALSK12/2nd-semester-introduction-to-computer-science/raw/master/units/2_unit/05_lesson/lab.pdf
[docx]: https://github.com/TEALSK12/2nd-semester-introduction-to-computer-science/raw/master/units/2_unit/05_lesson/lab.docx
[Tic-Tac-Toe]:lab-tictactoe.md
[Buffet]:lab-buffet.md
[pdf]: https://github.com/TEALSK12/2nd-semester-introduction-to-computer-science/raw/master/units/2_unit/05_lesson/lab-tictactoe.pdf
[docx]: https://github.com/TEALSK12/2nd-semester-introduction-to-computer-science/raw/master/units/2_unit/05_lesson/lab-tictactoe.docx
[Buffet pdf]: https://github.com/TEALSK12/2nd-semester-introduction-to-computer-science/raw/master/units/2_unit/05_lesson/lab-buffet.pdf
[Buffet docx]: https://github.com/TEALSK12/2nd-semester-introduction-to-computer-science/raw/master/units/2_unit/05_lesson/lab-buffet.docx
41 changes: 41 additions & 0 deletions units/2_unit/06_lesson/lab-buffet.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Buffet Table

You're ordering food for three people at a buffet, and you can each get only a few things.

## Requirements

* There must be at least 10 food items at the buffet.
* Each item is a single serving, so selecting an item must remove it from the buffet.
* A full order contains three food items.
* Ask for a name for each order.
* Loop over the buffet, selecting one item for each order, until all orders are full.

## Example output (incomplete)

```
Welcome to the buffet!
Who is receiving the first plate? Todd
Who is receiving the second plate? Copper
Who is receiving the third plate? Vixen

You may choose three items per plate. Here are your choices: mashed potatoes, fried rice, pot roast, bourbon chicken, General Tso's chicken, spanakopita, Thai yellow curry, fried tofu, bratwurst, salad.
What is Todd's first choice? mashed potatoes
Todd's plate now has: mashed potatoes.

The buffet now has: fried rice, pot roast, bourbon chicken, General Tso's chicken, spanakopita, Thai yellow curry, fried tofu, bratwurst, salad.
What is Copper's first choice? bratwurst
Copper's plate now has: bratwurst.

The buffet now has: fried rice, pot roast, bourbon chicken, General Tso's chicken, spanakopita, Thai yellow curry, fried tofu, salad.
What is Vixen's first choice? bourbon chicken
Vixen's plate now has: bourbon chicken.

The buffet now has: fried rice, pot roast, General Tso's chicken, spanakopita, Thai yellow curry, fried tofu, salad.
What is Todd's second choice? pot roast
Todd's plate now has: mashed potatoes, pot roast.
The buffet now has: fried rice, General Tso's chicken, spanakopita, Thai yellow curry, fried tofu, salad.

What is Copper's second choice? fried tofu
Copper's plate now has: bratwurst, fried tofu.
The buffet now has: fried rice, General Tso's chicken, spanakopita, Thai yellow curry, salad.
```
File renamed without changes.
14 changes: 10 additions & 4 deletions units/2_unit/06_lesson/lesson.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ Students will be able to...

* [2.06 Slide deck](https://github.com/TEALSK12/2nd-semester-introduction-to-computer-science/raw/master/units/2_unit/slidedecks/Intro%20Python%202.06%20TEALS.pptx)
* [Do now][]
* [Lab - Tic-Tac-Toe revisited][] ([docx][]) ([pdf][])
* Labs:
* [Tic-Tac-Toe revisited][] ([docx][]) ([pdf][])
* [Buffet revisited][] ([buffet docx][]) ([buffet pdf][])
* [Associated readings 2.7](https://tealsk12.github.io/2nd-semester-introduction-to-computer-science/readings.md#associatedreadings/2.7)
* Read through the do now, lesson, and lab so that you are familiar with the requirements and can assist students
* Video Resources:
Expand Down Expand Up @@ -57,6 +59,7 @@ Students will be able to...
### 3. Lab

* Students work to create a Tic-Tac-Toe game that allows turns (up to 9), building on their previous work.
* Alternatively, students work to create a buffet table ordering program that fills several orders, building on their previous work.

### 4. Debrief

Expand All @@ -67,6 +70,9 @@ Students will be able to...
If there is extra time, have students start reading through the final project specs and thinking about how they will apply what they have learned this unit to complete the project.

[Do now]:do_now.md
[Lab - Tic-Tac-Toe revisited]:lab.md
[pdf]: https://github.com/TEALSK12/2nd-semester-introduction-to-computer-science/raw/master/units/2_unit/06_lesson/lab.pdf
[docx]: https://github.com/TEALSK12/2nd-semester-introduction-to-computer-science/raw/master/units/2_unit/06_lesson/lab.docx
[Tic-Tac-Toe revisited]:lab-tictactoe.md
[Buffet revisited]:lab-buffet.md
[pdf]: https://github.com/TEALSK12/2nd-semester-introduction-to-computer-science/raw/master/units/2_unit/06_lesson/lab-tictactoe.pdf
[docx]: https://github.com/TEALSK12/2nd-semester-introduction-to-computer-science/raw/master/units/2_unit/06_lesson/lab-tictactoe.docx
[pdf]: https://github.com/TEALSK12/2nd-semester-introduction-to-computer-science/raw/master/units/2_unit/06_lesson/lab-buffet.pdf
[docx]: https://github.com/TEALSK12/2nd-semester-introduction-to-computer-science/raw/master/units/2_unit/06_lesson/lab-buffet.docx