0% found this document useful (0 votes)
10 views2 pages

Practical Task 4

This document outlines a practical task for Year 7 Computing students at Pakistan International School Jeddah, focusing on using selection in programming with Micro:bit. Students are instructed to create a thermometer, a thunder detection system, and a fire detector, utilizing variables, conditional statements, and input from sensors. Each task requires students to document their work with screenshots and save their programs appropriately.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views2 pages

Practical Task 4

This document outlines a practical task for Year 7 Computing students at Pakistan International School Jeddah, focusing on using selection in programming with Micro:bit. Students are instructed to create a thermometer, a thunder detection system, and a fire detector, utilizing variables, conditional statements, and input from sensors. Each task requires students to document their work with screenshots and save their programs appropriately.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Pakistan International School Jeddah - English Section

Y7-Computing
Unit 8.2: It’s all in the planning: Pseudocode and algorithms

Practice Task 4– Final term Total Marks: 15 Obtained Marks:

Name: Student ID: Y7 -____

In this Practical Task,


You will learn to use selection in the Micro:bit

1. Open Micro:bit simulator.

Task 1
Make a thermometer

2. Create a new project and name it “thermometer”


3. Make a variable that stores the temperature. Give it a suitable name (for example temp).
4. To make your code repeat, use a forever block in the beginning.
In this way, the Micro:bit will keep running the same code again and again.
5. Set the value of the variable you made equal to temperature input. You can get this block from input
category.
6. Show the value of the variable on the LEDs. Choose if it is a string of number output!
7. Use the selection and conditional operator blocks from Logic category to check:
a. If the variable is less than 15
i. Show the icon

ii. Show the message Cold!

b. If the variable is more than or equal to 45


i. Show the icon

ii. Show the message Hot!

Y7-Computing 2023-24 Practical 4 Final term Page 1 of 2


c. If the temperature is between 15 and 45
i. Show the icon

ii. Show the message Good


8. Check if your Micro:bit works by changing the temperature to -5, 25 and 50.
9. Save your program in Z-drive from the bottom of the screen.

Evidence 1: Take the screenshot of work area showing all blocks and attach under
evidence 1. Do not include the Microbit.

Task 2
Use selection so that Micro:bit gives an output when loud noise and
light is detected at the same time

1. Create a new project and name it as “thunder”


2. Micro:bit should repeat the following code:
a. If the sound level is more than 50 and light level is equal to 255
i. Show the string, Alert!
ii. Play the tone High B for 2 beats till done.

b. Otherwise, show the check symbol ✓

3. Check if your thunder program works on the Micro:bit by changing the input values.

Evidence 2: Take the screenshot of work area showing all blocks and attach under
evidence 1. Do not include the Microbit.

Task 3
Make a fire detector on Micro:bit.
If light level is above 150 and temperature is more than 45, Microbit
should give a Fire alert (message and sound alarm at volume 200).

Evidence 3: Take the screenshot of work area showing all blocks and attach under
evidence 1. Do not include the Microbit.

4. Add header and Print your evidence file.

Y7-Computing 2023-24 Practical 4 Final term Page 2 of 2

You might also like