Unit7.2creating Smart Solutions1-Final
Unit7.2creating Smart Solutions1-Final
Creating a smart
solution
Unit 2
Unit2: Decomposing Problems :Creating a smart solution
Smart Device: A device that utilizes sensors and is connected to other Devices
Sensor: A device that is able to gather data from its surroundings to respond to or record
Pedometer: A device that estimates the distance travelled on foot by recording the no.of steps taken.
Q1
Q2
portfolio
q3
Prototype: A sample ,a model or first release of a product such as program or device , built to
test a concept or process.
def on_button_pressed_a():
basic.show_string("GoodBye")
basic.show_icon(IconNames.UMBRELLA)
input.on_button_pressed(Button.A, on_button_pres
sed_a)
Question9: Give the meaning of * in the Program below
Program3
Program 4
from microbit import*
if button_a.is_pressed():
display.scroll(“Hello”)
from microbit import*
display.show(Image.ANGRY)
while True:
if button_a.is_pressed():
display.scroll(“Hello”)
display.show(Image.RABBIT)
else:
display.show(Image.CHESSBOARD)
Program7
Program5
from microbit import*
from microbit import*
while True:
while True :
display.scroll("Reqelford international school")
If button_a.is_pressed() :
display.show(Image.TORTOISE)
if button_b.is_pressed() :
Program6 display.show(Image.GIRAFFE)