Chapter 07 - Two tickets please

Przed włączeniem komputerów lub w trakcie przedstaw dzieciom historię związaną z dzisiejszym tematem, zwracając uwagę na kluczowe słówka po angielsku.

Story

EN: Steve runs off to the airport, hoping to skip his math test by leaving the country! When his dad finds him and asks how much the tickets cost, Steve quickly works out the price for two — which only proves how good he already is at math. Caught in his own trick, Steve has no choice but to go to school after all.

PL: Steve uciekł na lotnisko, licząc na to, że uniknie testu z matematyki, wyjeżdżając z kraju! Kiedy tata go znajduje i pyta, ile kosztują bilety, Steve szybko liczy cenę za dwa — co tylko dowodzi, jak dobry jest z matematyki. Złapany na własnej sztuczce, Steve musi w końcu iść do szkoły.

Czego nauczysz się podczas tych zajęć?

Nauczysz się jaka jest różnica pomiędzy pętlą Repeat a While.

Create new world

  1. Kliknij Singleplayer → Create New World → Create New World.
  2. Po wejściu na świat kliknij literkę T na klawiaturze, aby otworzyć okno czatu.

Task 1

Żółwik wyjmie bilety ze skrzynki.

turtle.turnRight()
turtle.forward()
for n = 1, 5 do
	turtle.forward()
	turtle.turnLeft()
	turtle.forward()
	turtle.turnRight()
end
turtle.suck()
for n = 1, 5 do
	turtle.turnLeft()
	turtle.back()
	turtle.turnRight()
	turtle.back()
end

Task 2

Żółwik zeskanuje nasz bilet, otwierając dla nas wejście do samolotu.

for n = 1, 3 do
	turtle.forward()
end
turtle.turnRight()
for n = 1, 5 do
	turtle.forward()
end
turtle.place()

Task 3

Przeanalizuj program. Czym różni się od dwóch poprzednich?

turtle.up()
turtle.forward()
while true do
	if not turtleedu.detectUp() then
		turtle.placeUp()
		turtle.forward()
	else
		turtle.forward()
	end
end

Zadanie kreatywne

Twoim zadaniem jest zbudowanie samolotu.

Dialog

English Polski
Steve is at the airport. Steve's dad runs to the desk. Steve jest na lotnisku. Tata Steve'a podbiega do biurka.
Dad: Steve! There you are! What are you doing at the airport? Tata: Steve! Tutaj jesteś! Co ty robisz na lotnisku?
Steve: I have a math test today. I need to leave the country. Steve: Mam dziś test z matematyki. Muszę opuścić kraj.
Dad: OK. How much is the ticket? Tata: OK. Ile kosztuje bilet?
Steve: Four hundred dollars. Steve: Czterysta dolarów.
Dad: How much are two tickets? Tata: Ile kosztują dwa bilety?
Steve: Eight hundred dollars. Steve: Osiemset dolarów.
Dad: Right! You're great at math! Now go to school. Tata: Racja! Jesteś świetny z matematyki! A teraz do szkoły.
English Polski
Airport Lotnisko
There you are Tutaj jesteś
How much Ile

Bezpośredni link: https://share.note.sx/n9ck8qnr