Focus Area: Byte Into Science
5th Grade
Day 19-20- Conditionals Using Broadcast/Receive
1. Vocabulary:
1. statement- a portion of a program that gives a command
2. Conditional - A statement that will make the program do one thing if/when a certain condition is true, and another thing (perhaps nothing) if/when the condition is false
3. sequence- an ordered collection of statements, the program has to follow the statements in the order given
4. Broadcast - A broadcast is a message that is sent through the Scratch program, activating receiving scripts.
5. Receive - a receive activates an action when it “sees” the matching broadcast message
1. statement- a portion of a program that gives a command
2. Conditional - A statement that will make the program do one thing if/when a certain condition is true, and another thing (perhaps nothing) if/when the condition is false
3. sequence- an ordered collection of statements, the program has to follow the statements in the order given
4. Broadcast - A broadcast is a message that is sent through the Scratch program, activating receiving scripts.
5. Receive - a receive activates an action when it “sees” the matching broadcast message
2. Lesson:
Review logging in.
Username: lunch number
Password: lunch number with initials at end
Go to https://scratch.mit.edu/ and scroll down to 'Projects by Scratchers I'm Following.
We will now be building on more commands in Scratch. We will work with conditions. Find Lesson 5KnockKnockJoke. Open and click 'See Inside'
Look over the conditionals. Review meaning of the broadcast and receive elements. (broadcast and say are two different things).
In this knock-knock joke program, the broadcasts are basically when a sprite is giving up its speaking turn, allowing another sprite to say something (Note: this is not always how broadcast works).
Create new broadcast and receive messages with two Sprites involved. They are interacting. Each sprite has a script using a “STATEMENT” and “talking” to one another
Sequence is the order of statements. "BROADCASTS are called statement 1 and so on but when you write your own, you can call them whatever keeps your program organized.
Sprites “RECEIVE” statements.
Review logging in.
Username: lunch number
Password: lunch number with initials at end
Go to https://scratch.mit.edu/ and scroll down to 'Projects by Scratchers I'm Following.
We will now be building on more commands in Scratch. We will work with conditions. Find Lesson 5KnockKnockJoke. Open and click 'See Inside'
Look over the conditionals. Review meaning of the broadcast and receive elements. (broadcast and say are two different things).
In this knock-knock joke program, the broadcasts are basically when a sprite is giving up its speaking turn, allowing another sprite to say something (Note: this is not always how broadcast works).
Create new broadcast and receive messages with two Sprites involved. They are interacting. Each sprite has a script using a “STATEMENT” and “talking” to one another
Sequence is the order of statements. "BROADCASTS are called statement 1 and so on but when you write your own, you can call them whatever keeps your program organized.
Sprites “RECEIVE” statements.
3. Activity:
- Find ByteintoCS projects. Find Lesson 5KnockKnockJoke. Open and click 'See Inside'. Click 'remix'
- Make their own Knock Knock joke. http://www.funology.com/knock-knock-jokes/
- You can change their sprites. You can change the joke, background, etc. But it must be a knock knock joke.
4. Wrap-Up:
- What did you learn in today's lesson?
- What do you look forward to in the next sessions?
5. Extension:
- Make a holiday or birthday card. https://scratch.mit.edu/projects/79225600/#editor