0% found this document useful (0 votes)
14 views16 pages

Computational Thinking PREK K

Uploaded by

a.alsinjilawi
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)
14 views16 pages

Computational Thinking PREK K

Uploaded by

a.alsinjilawi
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/ 16

1 Computational thinking and programming

Computational
Thinking
Think like a computer!
1.1 Precise
algorithms
What Is an Algorithm?
An algorithm is a list of step-by-step instructions in order
to get a task done.

We use lots of different algorithms in our everyday lives.

Examples of algorithms

Following a recipe to
make cookies.

Getting ready for bed.

Following directions to
get to the park.

Getting dressed.
Directions as algorithms

Directions are a type of algorithms.

It’s important that algoritms are precise.


When an algorithms is precise, it includes all the
information that people need to follow it

Bee-Bot wants to buy a newspaper


Example
How should he get to the Kiosk?

Go straight ahead, then turn right.


Go straight ahead again, then turn left. A
Continue straight ahead. The Kiosk is on your left.

Question
Frogs love to eat bugs! Help our frog find his way to the yummy bug!

Use arrows to create your algorithm for the frog here:

1 2 3 4

Splitting task into smaller steps

Splitting algorithms into smaller steps can help us


to make more precise algorithms.
Brushing your teeth is an example of an algorithm you
Example
follow everyday.

How to Make a Jam Sandwich


What you need:
Choose the correct order from the below steps:

1 2 3

4 5 6
Debugging algorithms

Sometimes when we write precise algorithm, it


does not do exactly what we wanted it to do, so
they can still have mistakes in them.

These mistakes are called errors and errors in


algorithms are called bugs.

To make our algorithm work the way we want it


to, we must find the bug and fix it. This is called
debugging.

Example
In the following example, in the first algorithm, there is a bug,
which is to wear the shoes before the socks. In the second
algorithm the bug was corrected, which is wear the socks
before the shoes.

1. Put on your 1. Put on your


shoes. socks.
2. Put on your 2. Put on your
socks. shoes.
1.3 Animal
animation
An animation for ScrratchJr
Triggering

Block categories
Motion

Looks

Sounds

Control

End

Start on Green Flag

Start on Tap

Coding
End
Blocks

Repeat

Move Right / Move


Left

Move Up / Move
Down

Turn Right / Turn


Left
Make a Character Move Left and Right

Make a Character Move Up and Down


Make a Character Move Up and Down

Question

Follow the below steps to make your programm:


1. Open ScratchJR.
2. First, tap on the yellow “Trigger commands” group.
3. Drag a single yellow “Trigger command” into the white part.
4. Tap on the blue “Motion command” group.
5. Drag Move up block into the white part.
6. Tap on the orange “Control command” group.
7. Drag wait block into the white part.
8. Tap on the blue “Motion command” group.
9. Drag Turn right block into the white part.
10. Tap on the orange “Control command” group.
11. Drag wait block into the white part.
12. Tap on the blue “Motion command” group.
13. Drag move right block into the white part.
1.4 Repeat,
repeat, repeat
Add a repeat loop

Repeat forever

Question
Follow the below steps to make your programm:
1. Open ScratchJR.
2. First, tap on the yellow “Trigger commands” group.
3. Drag a single yellow “Trigger command” into the white part.

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