Learning Objectives

LO: Understand selection statements

LO: Understand the ‘if…then…else’ logic block

MAIN

Click here to open the code window!

Tasks

1.Create a program like the one shown below. What does it do?

Picture1.jpg

2. Can you edit your program to show the string “Sunny / Warm” BEFORE the “Play Outside!” string

3. Can you edit your program to show the string “Stay Inside…” AFTER the “Raining” string

4. Can you edit your program to display a suitable image AFTER the text. Do this for both the “Raining” scenario and the “Sunny / Warm” scenario. Use the block below to help you…

1

5. Can you edit your program so it generates a random number between 0 and 3. Your program should then have 4 different weather scenarios; Raining, Sunny/Warm, Snowing/Cold & Windy. It should output an appropriate message for each and the show an icon. The code below will get you started….

Picture1.jpg

CHALLENGE

Use the this tutorial to help you create a Rock, Paper, Scissors game

hands.gif

Now see if you can get your program onto your Microbit. Use the video below to help you do this!

 

Knowledge Check

Click on the image below to test your knowledge of today’s learning!

zwxlurbk_How-to-Create-a-Successful-E-Learning-Knowledge-Check