01
ダニエルがかなしそうにしています。おやつをおとしてしまったからです。
02
でもおなかはまだすいています。おやつスタンドからかわりのおやつをとってきましょう。
03
ダニエルのためにおやつスタンドをつくってあげてください。
04 -BI
05
チャレンジです: ダ ニエルにかわりのおやつを出してくれるプログラムをつくりましょう。
06
![U2L4_img_step_7.png](https://assets.education.lego.com/v3/assets/blt293eea581807678a/blt6f8dc7461d55c620/5eeb6ec11a71e7250320109f/U2L4_img_step_7.png?locale=ja-jp&auto=webp&format=jpeg&width=1800&quality=90&fit=bounds)
プログラムをつくりましょう。青いチケットを見せるとダニエルにかわりのおやつを出してくれます。
07
![U2L4_img_step_8.gif](https://assets.education.lego.com/v3/assets/blt293eea581807678a/blta8bcfd32a5230bca/5f0576390fdfc3761547dbcd/U2L4_img_step_8.gif?locale=ja-jp&auto=webp&format=jpeg&width=1800&quality=90&fit=bounds)
プログラムをためしましょう。ダニエルの青いおやつチケットをカラーセンサーのまえに出してください。
08
プログラムをへんこうしておやつスタンドをかいぜんしましょう。
09
![U2L4_inspiration_img_1.png](https://assets.education.lego.com/v3/assets/blt293eea581807678a/blt6d463ff05098322d/5eeb6ea2146cc4629e1ad4bf/U2L4_inspiration_img_1.png?locale=ja-jp&auto=webp&format=jpeg&width=216&height=124&quality=90&fit=bounds)
![U2L4_inspiration_img_1.png](https://assets.education.lego.com/v3/assets/blt293eea581807678a/blt6d463ff05098322d/5eeb6ea2146cc4629e1ad4bf/U2L4_inspiration_img_1.png?locale=ja-jp&auto=webp&format=jpeg&width=216&height=124&quality=90&fit=bounds)
![U2L4_inspiration_img_2.png](https://assets.education.lego.com/v3/assets/blt293eea581807678a/blta4ca44408903ef05/5eeb6ea47253820a4364dde2/U2L4_inspiration_img_2.png?locale=ja-jp&auto=webp&format=jpeg&width=216&height=124&quality=90&fit=bounds)
![U2L4_inspiration_img_3.png](https://assets.education.lego.com/v3/assets/blt293eea581807678a/blt13ee870d179960e9/5eeb6ea41a71e7250320109d/U2L4_inspiration_img_3.png?locale=ja-jp&auto=webp&format=jpeg&width=216&height=124&quality=90&fit=bounds)
ダニエルのためにおやつスタンドをアップグレードしてください。ダニエルがおやつに手がとどくようにしましょう。