0% found this document useful (0 votes)
93 views

Code.org SessionPlan#2(1 4)

Uploaded by

mzmegastorm
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
93 views

Code.org SessionPlan#2(1 4)

Uploaded by

mzmegastorm
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 31

Code.

org
LESSON: 2
Sequence and Algorithms

1
Warm - up

Hello, how are you today?


Let’s revise what we learned in the last session.
What are commands?
*students reply*
Commands are the instructions that we use for communicating with computers.

What is programming language?


*students reply*
The language that we use to instruct the computer.

In the last session, on which platform did we create the project?


*students reply*
We created the project on Artist Lab using different direction, jump and pattern
blocks.
2
Problem Statement
Once upon a time, in the futuristic world of Roboville, lived a curious and friendly
robot named Robby. Robby was known throughout the town for his insatiable
curiosity and his love for trying new things. One day, as he explored the bustling
streets of Roboville, he stumbled upon an interesting challenge – to create a
robot that could cook delicious meals for the residents of the town. And so, the
journey of the Hungry Robot project began.

3
Solution
Robby was excited about the idea and decided to use his coding skills to bring
the Hungry Robot to life. He knew that coding was like giving instructions to a
robot in a language it understood. He headed to the Play Lab of the Roboville
Code Academy to get started.

4
Sequence

Arranging something in the correct order of steps is called Sequence.

Let's share our morning routine with each other. I'll go first and then you
share yours in a similar structure.
(the teacher gives a sample answer of her routine first and then asks the
student to go next.)
Eg: I wake up at 7am and freshen up till 8 am. Then, I conduct classes at
Brightchamps from 9 am till 5 in the evening. Finally, I have dinner with my
family around 8 PM and go to bed by 10 PM.

5
Sequence in Daily Life

Steps to make Peanut Butter and Jelly Sandwich:

1. Pull out two slices of bread.


2. Open the peanut butter and jelly jars.
3. Spread peanut butter onto one slice of bread.
4. Spread the jelly onto one slice of bread.
5. Place one slide on top of the other.
6. Cut it into half.
7. Enjoy the Peanut Butter and Jelly Sandwich.

6
Logging into Code.org

LINK : - code.org

7
Student Login

Step 1: Visit the link and click on “sign in”.


(Share this link with the students in the comment section).
Link: http://www.studio.code.org

Step 2: To sign in to the platform, enter the section code.


(Share the section code created by you this is session)
Once done, click on the ‘Go’ option to log in.

8
Student Login

Step 3: Time to choose your name from the


names listed in the grey boxes.

Step 4: Now, enter the ‘secret words’ as given


by your teacher and type them in the white
box below the instruction: “Now enter your
secret words”.
(Refer to the image attached)

9
Instructions for Teachers

Let’s solve some puzzles now. Are you ready?


Today, we are going to help this cute spelling bee
find some words.
As you can see on the screen, the bee is taking all
the actions. Now, it's your turn to be the bee. Your
task is to find the word "EAST". Can you look around
the play area and see if you can spot where the word
"EAST" is written?

Awesome job! Now, it's time to help the bee spell the
word "EAST". To do this, we'll give the bee
commands and guide her along the way. Remember,
we need to use the "E" block four times to complete
this puzzle. So, it's your turn to help the spelling bee!
10
Spelling Bee

Activity Link: Spelling Bee Puzzles

11
Activities For Learners

Complete all these puzzles:

1. https://studio.code.org/s/course1/lessons/11/levels/2
2. https://studio.code.org/s/course1/lessons/11/levels/3
3. https://studio.code.org/s/course1/lessons/11/levels/4
4. https://studio.code.org/s/course1/lessons/11/levels/5

12
Teacher’s
Explaination
Algorithm Real Life Exampl
e

13
Real Life Algorithm of Planting a
Seed

Answer: cover seed with soil

14
Algorithm

An algorithm is a plan, a set of step by step instructions to solve a problem. There


are
three basic building blocks to use when designing algorithms:
1. Sequencing: Giving commands or instructions in an order.
2. Selection: Selecting a proper sequence of instructions.
3. Iteration: Repeating a particular set of instructions.

Relation between Sequence and Algorithm:


Sequence is a specific order in which instructions or commands are performed in an
algorithm.

15
Algorithm

Why sequencing is important?

● Sequencing is important because it ensures that the steps in a process or


task are done in the right order.
● If the steps are not in the correct sequence, the outcome will not be as
intended.
● This is true for both computer programming and everyday life.
● In computer programming, we write codes by putting together a sequence of
commands, and it is important that these commands are in the right order for
the program to work correctly.
● The same concept applies to everyday tasks and routines, where following
the steps in the correct order is essential for success.

16
Algorithm Example

For example: Steps of brushing teeth:

1. Grab your toothbrush and toothpaste.


2. Apply toothpaste on the toothbrush.
3. Place your toothpaste tube on a stand.
4. Gently brush upper and then lower teeth.
5. Clean the chewing surfaces of your teeth.
6. Place your toothbrush back on a stand.
7. Grab your tongue cleaner.
8. Clean your tongue.

17
Play Lab Project
Activity Link: Play Lab

18
Play Lab Project

You can also change the background and


add music or sound effects to make your
scene even more fun.

With Play Lab, you can use your creativity


and imagination to build unique and
interactive scenes. So, let's get started and
explore the world of coding with Play Lab!

You can make actors talk with each other.


Actors can be moved in all the four
Directions: UP, DOWN, LEFT and RIGHT.

19
Play Lab Project

You need to follow the following steps:


1. Make sure you are logged in to code.org platform.

2. Open the shared link,


https://studio.code.org/projects/playlab/qVZt2uf0kfwLpFhsGbRFYomRsqtkaWXE
WYwE2AhQhj4

(Share the link with students on the chat box and ask them to click on it).

3. Click on ‘remix’ and start developing the project.

4. After completion, click on ‘rename’ and assign an appropriate name.

5. Finally, click on ‘save’.


20
Hungry Robot Project

The Hungry Robot project will be developed


within the Play Lab on code.org.

In this project you will create two actors, make


them conversate.

The movement of one actor will be controlled by


the arrow key of the device.

When the second actor is clicked, it will throw


sandwiches in the random directions that the first
actor is supposed to collect.

21
Hungry Robot Project

To create a Hungry Robot project on code.org, we need to follow the below


steps:

1. Create two actors and make them conversate.


2. Move actor 1 using arrow keys.
3. Make the actor 2 throw objects on clicking him.
4. Play sound and display text when actor 1 touches the object.
Hungry Robot Project

1. Create two actors and


make them
conversate.

● Add a space background


scene.
● Create Robot as the first
character or actor.
● Make Robot say that he
is very hungry.
● Create Spacebot as the
second character or
actor.
● Make both the actors
communicate with each
Hungry Robot Project

2. Move actor 1 using arrow


keys.
Move actor 1 on play area using
four arrow keys.

3. Make the actor 2 throw


objects on clicking him.

When actor 2 is clicked make


actor 2 throw sandwich in
random directions and play
sound.
Hungry Robot Project

2. Play sound and display text


when actor 1 touches the
object.

When actor1 touches sandwich,


play hit sound and display title
‘*** Yippee! I got food***’.
Testing of the Hungry Robot
Project
● To test the project you ● After clicking on the Run button
need to click on the Run you can see two actors and
button. move an actor using arrows.

26
Complete Code
Assessment

Ask the student the following questions to check the pace of the learner.
What is an algorithm? Answer: A set of step by step instructions to solve a
problem.
Give a real life example of algorithm? Answer: Tying your shoes or Bedtime
routines.
Which block will you use to create an actor on play lab? Answer: ‘set actor to
image’ block.

28
Resource Table

Link Activities Links

Project link Spelling Bee Puzzles (2-5)


Teacher/Learner

Assignment Assignment

29
Wrap - Up

This leads us to the end of the session. Congratulations! You did very
well in the class today.

How about we revise what we studied today?


● What is sequence?
● What is algorithm?
● How sequence is related to algorithm?
● Created Hungry Robot project ?
● We have helped Bee and Scrat in solving
interesting sequencing puzzles.

30
Thank You !

31

You might also like