0% found this document useful (0 votes)
11 views24 pages

Unit7.2creating Smart Solutions1-Final

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views24 pages

Unit7.2creating Smart Solutions1-Final

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 24

Decomposing problems:

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

Thermostat: a Device that has a built in sensor to detect changes in temperature.

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.

Simulator: A software to simulate then real world application is called simulator.

Q: What are the benefits of using a simulator?


Ans:
• Can be safer and cheaper than the real world.
• Able to test a product or system works before building it.
• Can use it to find unexpected problems.
• Able to explore 'what if…' questions.
• Can speed things up or slow them down to see changes over long or short periods of time.
Q4: What is a micro bit?
Ans: The microbit is a physical computing device with a range of inputs and outputs that can be programmed
through block based and text based programming languages such as makecode or micropython.

Q5:What is make code?


Ans: Make code is an online programming environment that has a built in simulator that allows the
programmer to test their programs and develop their programming skills with simulator before using the
physical device.

Q6: What is Micro python


Ans: Micro python is the version of python used with the micro bit.

Q7: Define Syntax.


Ans: Syntax is the structure of the code used in a programming language.

Q8: Give the file extension of python file format.


Ans : Micropython file have either .hex or .py format
# Micropython program to display goodbye and an umbrella
#Program 1

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

from microbit import*


display.scroll(‘hello’)
display.show(Image.HEART)

Ans: The stat(*) means ‘import everything to do with the micro:bit’.

Question10: What do you mean by library in micropython?


Ans: Library in microbit/micro python means a list of all programming commands that are available
under the library name.
Q: Name the sensors used to set burglar alarm
Ans: Touch sensor
Temperature sensor
Sound Sensor
Movement Sensor
Light Sensor

Q:How to detect a potential theft of a computer.


Ans: The potential theft can be identified if
Unusual Activity: Monitor for unusual activity, such as unexpected logins or changes in system settings. This can be an
early sign that your computer has been tampered with.
Unauthorized Access: Keep an eye on your accounts for any unauthorized access or changes. If you notice anything
suspicious, take immediate action to secure your data

Q: How can we protect the computer from potential Theft?


Ans:
Physical Security Measures
• Use Locks and Alarms
• Secure Your Workspace
Software Tools
• Tracking Software: Install tracking software like “Find My Device” for Windows or “Find My” for macOS.
• Remote Lock and Wipe
Program1 Program2

from microbit import* from microbit import*


display.scroll(“Hello”) if button_a.is_pressed():
display.show(Image.SMILE) display.scroll(“Hello”)
display.show(Image.Happy)

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)

from microbit import*


while True:
if button_a.is_pressed():
display.scroll("Reqelford international school")
else:
display.show(Image.RABBIT)

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy