SlideShare a Scribd company logo
1 of 58
Programming in scratch
Eng. hussam mostafa
The purpose of that work
• This work was made for the memory of my friend Ahmed Elzeki who
passed away in 2016. you're allowed to use this presentation in any
educational purpose for free. Just please pray for Ahmed.
‫عام‬ ‫فى‬ ‫المنيه‬ ‫وافته‬ ‫الذي‬ ‫الذكي‬ ‫أحمد‬ ‫صديقي‬ ‫لذكرى‬ ‫تخليدا‬ ‫تم‬ ‫العمل‬ ‫هذا‬2016.‫مسموح‬
‫مجانا‬ ‫تعليميه‬ ‫أغراض‬ ‫ألي‬ ‫الملف‬ ‫هذا‬ ‫استخدام‬ ‫أحد‬ ‫ألى‬.‫دعائكم‬ ‫من‬ ‫أحمد‬ ‫تسنوا‬ ‫ال‬ ‫رجاء‬ ‫فقط‬
What’s scratch?
• MIT's block-based programming language.
• With Scratch, you can program your own interactive stories, games,
and animations — and share your creations with others in the online
community.
• Scratch helps young people learn to think creatively, reason
systematically, and work collaboratively — essential skills for life in
the 21st century.
• Scratch is a project of the Lifelong Kindergarten Group at the MIT
Media Lab. It is provided free of charge.
Prerequisites
Scratch will run in the following browsers:
• Chrome 35 or later
• Firefox 31 or later
• Internet Explorer 8 or later
• In addition, you must have Adobe Flash Player 10.2 or later installed
in order to run Scratch.
How to open scratch?
• Visit http://scratch.mit.edu to get started. You should see a webpage
that looks similar to this:
CREATING A SCRATCH ACCOUNT AND
SIGNING IN
• At the top right corner of the Scratch page, you'll see a "Sign in"
button.
Getting started
• Once you've logged in, click on the "Create" button at the top left
corner of the webpage. This will take you to a new page where you
can start working on a new Scratch project!
Scratch programming language
• Tabs (for blocks):
• In the top center of the Scripts tab of the Scratch editor, there is a list
of colored rectangles and types of blocks. These are the block tabs.
We use them to look at lists of the different kinds of blocks.
Scratch programming language
Tabs (for each Sprite):
• In the top center of the Scratch editor, there are three tabs that say
"Scripts", "Costumes", and "Sounds". These are the tabs for each
sprite.
Scratch programming language
• Blocks:
• Blocks are the colored pieces that we move around to make Scratch
programs. Different colored blocks are used to do different things.
The block color is the same color that goes with the block tab where
you find that block.
Scratch programming language
• Script:
• A script is a group of connected blocks that does something when you
double click on it.
Scratch programming language
• Sprite:
• A sprite is a Scratch character. Each sprite has its own scripts,
costumes, and sounds. Sprites are shown on the stage and in the
sprites area in the bottom left part of the screen.
Scratch programming language
• Costume:
• The appearance of the sprite on the stage. Each sprite can have
multiple costumes.
Scratch programming language
• Stage:
• The stage is in the upper left part of the Scratch editor. This is where
you can see what happens when you run your scripts.
COMPUTER SCIENCE LINGO
• We'll also use computer science lingo in this class! These words
describe things that are in Scratch and other programming languages.
Quiz
• Which area is the "scripts area"?
Answer
B
Moving Pieces
• CREATING SCRIPTS
• In your Scratch project, drag some blocks onto the "Scripts" area.
Moving Pieces
• Now try to connect the blocks to create this script below!
REMOVING A BLOCK
• How can you remove the block from the
script you just wrote so that it looks like the script below? Figure this
out now!
RUNNING SCRIPTS
• Try connecting some of play note blocks in the scripts area. Run the
script you made by double clicking on it (there should be a yellow
glow around it).
NAMING YOUR PROJECT
• You can change the name of your project by filling in the box at the
top of the stage, in the upper left portion of the screen. In this
picture, we're naming our project "1. Repeats in a Song".
SAVING YOUR PROJECT
• It's really important that you save your Scratch projects often.
Otherwise, you might lose something you've been working really hard
on! It hurts, I promise.
• To save your project in Scratch, click "Save Now" in the upper right
corner of the screen, next to your username. You can also click the
"Save Now" option in the "File" menu in the upper left part of the
Scratch editor.
Repeat
• to make the song below where we play the notes 60 and 62 over and
over again, we need 8 pieces!
Repeat
• THE REPEAT BLOCK
• To make our work easier, we can use repeat blocks! Click on the
"Control" tab in the middle of the Scratch window.
• A repeat block can do a snippet of code over and over again. The
number next to the word repeat tells us how many times we want to
do the things inside of the repeat block.
EXPERIMENT WITH REPEAT
• Try to make a script that uses different numbers after the repeat.
Here are some examples.
Repeat 3:
Repeat 1:
Repeat 0:
EXPERIMENT WITH REPEAT
• Try to put pieces before, after, and inside the repeat, like below.
• Hint: If you click on a block with the right button on the mouse
("right-click"), you should see "duplicate", "delete" and "add
comment" options. Select "duplicate" to make a copy of the block you
clicked on and all blocks below that block. If right-clicking doesn't
work, you can press shift and then click to see the menu.
QUIZ
• How many times does the note 52 play when you double click the
script below?
• How many times does the note 62 play when you double click the
script below?
Answer
0
Answer
1
NESTED REPEATS
• We can put one repeat inside of another repeat! We call this a nested
repeat.
• How many times will the note 62 play when you double click on this
script?
Answer
6
COMPLEX NESTED REPEATS
• Nested repeats (a repeat within a repeat) can be really complicated!!!
• How many times does the note 55 play when you double click the
script?
• How many times does the note 60 play when you double click this
script?
Answer
4
Answer
2
Tricky Nested Repeats
• It is important in computer science to figure out exactly what
instructions get executed (when a script runs).
• When the script is run, what is the first note that is played?
• When this script is run, what is the last note that is played?
• When this script is run, is the note 40 ever played twice in a row?
• When this script is run, is the note 60 ever played twice in a row?
40
60
NO
NO
Project: Make a Song
• For your first project - make a song! You can make a Scratch script for
a song written by someone else, or come up with a new song on your
own! You should make a new Scratch script and not use parts of
someone else's script.
• Start by making a new project in Scratch. Click on "File" in the gray
bar at the top of the screen and you'll see a menu pop up. Click on
"Go to My Stuff". This should take you to the page with all your
projects.
Project: Make a Song
• Now click on the button that says "+ New Project".
• This will open a new project for you.
• To make your song, you can try using any of the
blocks in the Sound tab.
Project: Make a Song
• Also, you can make more than one script with a "green flag" block on
top. That way, when you click the green flag, more than one script will
play! This is called parallel execution.
• NOTE : you must put the green
flag in the beginning of your script
so that others can play you song. You’ll find it there
HOW TO SHARE YOUR PROJECT
• Before you post a link to your project, you need to share the project.
Do this by pressing the gray Share button in the upper right corner of
the Scratch editor, under your Scratch username.
HOW TO SHARE YOUR PROJECT
• After you've shared your project, you will see the word "shared" in
parentheses under the name of your project, and you will no longer
see the "Share" button next under your username in the upper right
corner.
HOW TO SHARE YOUR PROJECT
• To post your project, copy the URL of your project and paste it. The
URL for your Scratch project should be at the top of the browser
page.
• NOTE: don’t forget to use more than 3 instruments and the repeat
block
Intro to Drawing
• Reset Script
• When we're drawing in Scratch, it's helpful to be able to reset the
stage. Resetting the stage moves the character to the center of the
screen and removes older drawings from the stage.
Drawing a Square
• Now you'll try drawing a square yourself! Create a new project in
Scratch. But, for your square, try to use the repeat block.
• The blocks below will probably be helpful too!
HINT
• You might want to make your character smaller so that it is easier to
see where it is drawing (check out the 4 buttons on the at the top
right of the stage--stamp, scissor, and 2 buttons with arrows--these
could be helpful!).
HINT
• You might want to see your character drawing the shape you want.
Using delay will help you achieve that.
• Try this out!
Drawing a Triangle Quiz
• Someone wants to draw a triangle in Scratch (like the one below). At
each turn, does the character turn more or less than 90 degrees? The
sprite will be turning right.
• Less than 90 degrees
• 90 degrees exactly
• More than 90 degrees
FALSE
FALSE
TRUE
Drawing a Triangle Quiz
• Someone tried to make a triangle but it doesn't quite look like a
triangle. Would you recommend that they have the character turn
MORE at each turn or LESS at each turn?
• More
• Less
TRUE
FALSE
Drawing a Triangle Quiz
• Someone made tried to make a triangle but it doesn't quite look like a
triangle. Would you recommend that they have the character turn
MORE at each turn or LESS at each turn?
• More
• Less
FALSE
TRUE
DRAWING A TRIANGLE WITH REPEAT
• Using a REPEAT try to draw the following shape, an equilateral
triangle:
Quiz
• How many degrees did the sprite turn in total when it drew the
square?
• How many degrees did the sprite turn in total when it drew the
triangle?
360
360
Draw a Pentagon
• Use Guess and Check to have the sprite draw a pentagon in Scratch.
• 1. How many degrees did the character turn in total when it drew the
pentagon?
360
Drawing Circles
• Have your character draw a circle in Scratch.
• Building off the circle you just made, draw 2 more circles. One should
be smaller than the first circle you drew and one should be larger
than the first circle you drew.
Quiz
• Which of these scripts will draw a larger circle?
TRUE
FALSE
Quiz
• Draw a staircase across the Scratch stage using repeat.
Quiz
• Draw a dotted line that goes across your Scratch screen. Hint: You
should use repeat.
Quiz
• Assume the sprite starts at the arrow, facing the same direction as the
arrow. Choose which path the sprite will follow when this script is
run.
FALSE
TRUE
FALSE
Draw beautifully
in scratch you can adjust drawing with great features.
• Change colors
• Change color shade
• change font size
Change font size
• You can use change pen size by () and put the value you wish. If it’s
+ve the pen thickness will grow else if it’s –ve the pen thickness will
shrink
• You also can use set pen size to () and put whatever the value you
want
Change color
• To change the color you use just press the colored square and go with
your mouse anywhere in the page and the color you click on will be
you color.
• If you’re using repeat you can use
to change the colors each iteration. This will make you able to draw
colorful shapes
Change color
• For example. This script draws this colorful square
Change shade
• Changing shade will make the color darker or lighter
• The below script draws the right square which go darker every
iteration due to the -20.
• If you changed -20 to +20 it’ll draw the left square which go lighter
every iteration.
Putting all together
• Not use your imagination to draw wonderful shapes with music in the
background
• Don’t forget to use the “WAIT” block to make your drawings into
animations
• Don’t forget to use the “when clicked greed flag” block to enable as
play your wonderful work when you share it.
THANK YOU!
Resources
• https://goo.gl/mBFZVw
• Contact
• 01022495616
• hussam.mostafa.qi@gmail.com

More Related Content

What's hot

Computer Coding with Scratch: Lesson 2_primaryschoollessons
Computer Coding with Scratch: Lesson 2_primaryschoollessonsComputer Coding with Scratch: Lesson 2_primaryschoollessons
Computer Coding with Scratch: Lesson 2_primaryschoollessonsSeniorInfants
 
Lesson 1: Scratch Computer Programming
Lesson 1: Scratch Computer ProgrammingLesson 1: Scratch Computer Programming
Lesson 1: Scratch Computer ProgrammingSeniorInfants
 
Introduction to scratch programming
Introduction to scratch programmingIntroduction to scratch programming
Introduction to scratch programmingPatrick John McGee
 
Scratch programming introduction to game creation
Scratch programming  introduction to game creationScratch programming  introduction to game creation
Scratch programming introduction to game creationAnkita Shirke
 
Scratch Lesson 2 – Paint Editor
Scratch Lesson 2 – Paint EditorScratch Lesson 2 – Paint Editor
Scratch Lesson 2 – Paint EditorDavid Oromaner
 
Scratch programming
Scratch programmingScratch programming
Scratch programmingYvonieDoria
 
Introduction to scratch
Introduction to scratchIntroduction to scratch
Introduction to scratchemreyz
 
Class #1: Blocks and Vocabulary
Class #1: Blocks and VocabularyClass #1: Blocks and Vocabulary
Class #1: Blocks and VocabularyAngela DeHart
 
Algorithms and flowcharts
Algorithms and flowchartsAlgorithms and flowcharts
Algorithms and flowchartsSamuel Igbanogu
 
Scratch - Intuitive and Accessible Programming
Scratch - Intuitive and Accessible ProgrammingScratch - Intuitive and Accessible Programming
Scratch - Intuitive and Accessible ProgrammingGigi Gilbert-Igelsrud
 
Scratch - Rock, Paper, Scissors
Scratch - Rock, Paper, ScissorsScratch - Rock, Paper, Scissors
Scratch - Rock, Paper, ScissorsSara Gibbons
 

What's hot (20)

Computer Coding with Scratch: Lesson 2_primaryschoollessons
Computer Coding with Scratch: Lesson 2_primaryschoollessonsComputer Coding with Scratch: Lesson 2_primaryschoollessons
Computer Coding with Scratch: Lesson 2_primaryschoollessons
 
Scratch Animation
Scratch AnimationScratch Animation
Scratch Animation
 
Intro To Scratch
Intro To ScratchIntro To Scratch
Intro To Scratch
 
Scratch Lesson 1
Scratch Lesson 1Scratch Lesson 1
Scratch Lesson 1
 
Lesson 1: Scratch Computer Programming
Lesson 1: Scratch Computer ProgrammingLesson 1: Scratch Computer Programming
Lesson 1: Scratch Computer Programming
 
Lecture 1.pptx
Lecture 1.pptxLecture 1.pptx
Lecture 1.pptx
 
Scratch Basics
Scratch BasicsScratch Basics
Scratch Basics
 
Scratch Lesson 2
Scratch Lesson 2Scratch Lesson 2
Scratch Lesson 2
 
Scratch
ScratchScratch
Scratch
 
Introduction to scratch programming
Introduction to scratch programmingIntroduction to scratch programming
Introduction to scratch programming
 
Scratch programming introduction to game creation
Scratch programming  introduction to game creationScratch programming  introduction to game creation
Scratch programming introduction to game creation
 
Scratch Lesson 2 – Paint Editor
Scratch Lesson 2 – Paint EditorScratch Lesson 2 – Paint Editor
Scratch Lesson 2 – Paint Editor
 
Make a game in scratch
Make a game in scratchMake a game in scratch
Make a game in scratch
 
Scratch programming
Scratch programmingScratch programming
Scratch programming
 
Introduction to scratch
Introduction to scratchIntroduction to scratch
Introduction to scratch
 
Class #1: Blocks and Vocabulary
Class #1: Blocks and VocabularyClass #1: Blocks and Vocabulary
Class #1: Blocks and Vocabulary
 
Algorithms and flowcharts
Algorithms and flowchartsAlgorithms and flowcharts
Algorithms and flowcharts
 
scratch-3-tutorial.pdf
scratch-3-tutorial.pdfscratch-3-tutorial.pdf
scratch-3-tutorial.pdf
 
Scratch - Intuitive and Accessible Programming
Scratch - Intuitive and Accessible ProgrammingScratch - Intuitive and Accessible Programming
Scratch - Intuitive and Accessible Programming
 
Scratch - Rock, Paper, Scissors
Scratch - Rock, Paper, ScissorsScratch - Rock, Paper, Scissors
Scratch - Rock, Paper, Scissors
 

Viewers also liked

Creative Teaching with Scratch 2010
Creative Teaching with Scratch 2010Creative Teaching with Scratch 2010
Creative Teaching with Scratch 2010Douglas Kiang
 
Scratch in the Classroom
Scratch in the ClassroomScratch in the Classroom
Scratch in the ClassroomDarrel Branson
 
Programming with Scratch
Programming with ScratchProgramming with Scratch
Programming with ScratchCort1026
 
Primary Programming and Scratch
Primary Programming and ScratchPrimary Programming and Scratch
Primary Programming and ScratchMiles Berry
 
Recreation with Scratch Animation Presentation
Recreation with Scratch Animation PresentationRecreation with Scratch Animation Presentation
Recreation with Scratch Animation PresentationMary-Anne Saunders
 
Creative Teaching with Scratch
Creative Teaching with ScratchCreative Teaching with Scratch
Creative Teaching with ScratchDouglas Kiang
 
Scratch In The Classroom
Scratch In The ClassroomScratch In The Classroom
Scratch In The ClassroomJanis Williams
 
Workshop Arduino + Scratch
Workshop Arduino + ScratchWorkshop Arduino + Scratch
Workshop Arduino + ScratchAna Carneirinho
 
An Intro to Scratch Programming for Parents
An Intro to Scratch Programming for ParentsAn Intro to Scratch Programming for Parents
An Intro to Scratch Programming for Parentsmewren
 
7th grade presentation cite2
7th grade presentation  cite27th grade presentation  cite2
7th grade presentation cite2Patrick Woessner
 

Viewers also liked (20)

Creative Teaching with Scratch 2010
Creative Teaching with Scratch 2010Creative Teaching with Scratch 2010
Creative Teaching with Scratch 2010
 
Scratch in the Classroom
Scratch in the ClassroomScratch in the Classroom
Scratch in the Classroom
 
Scratch Lesson 5
Scratch Lesson 5Scratch Lesson 5
Scratch Lesson 5
 
Scratch Lesson 6
Scratch Lesson 6Scratch Lesson 6
Scratch Lesson 6
 
Scratch Lesson 3
Scratch Lesson 3Scratch Lesson 3
Scratch Lesson 3
 
Scratch Lesson 4
Scratch Lesson 4Scratch Lesson 4
Scratch Lesson 4
 
Programming with Scratch
Programming with ScratchProgramming with Scratch
Programming with Scratch
 
Programming from scratch™
Programming from scratch™Programming from scratch™
Programming from scratch™
 
Primary Programming and Scratch
Primary Programming and ScratchPrimary Programming and Scratch
Primary Programming and Scratch
 
Recreation with Scratch Animation Presentation
Recreation with Scratch Animation PresentationRecreation with Scratch Animation Presentation
Recreation with Scratch Animation Presentation
 
Creative Teaching with Scratch
Creative Teaching with ScratchCreative Teaching with Scratch
Creative Teaching with Scratch
 
Scratch In The Classroom
Scratch In The ClassroomScratch In The Classroom
Scratch In The Classroom
 
Workshop Arduino + Scratch
Workshop Arduino + ScratchWorkshop Arduino + Scratch
Workshop Arduino + Scratch
 
An Intro to Scratch Programming for Parents
An Intro to Scratch Programming for ParentsAn Intro to Scratch Programming for Parents
An Intro to Scratch Programming for Parents
 
7th grade presentation cite2
7th grade presentation  cite27th grade presentation  cite2
7th grade presentation cite2
 
Advanced2
Advanced2Advanced2
Advanced2
 
Scratch Syntax 2 Cmp
Scratch Syntax 2 CmpScratch Syntax 2 Cmp
Scratch Syntax 2 Cmp
 
Advanced1
Advanced1Advanced1
Advanced1
 
Advanced3
Advanced3Advanced3
Advanced3
 
Intro To Programming Cmp
Intro To Programming CmpIntro To Programming Cmp
Intro To Programming Cmp
 

Similar to Programming in scratch

Scratch Introduction
Scratch IntroductionScratch Introduction
Scratch IntroductionGirijaSuthoju
 
Introduction to Scratch.ppt
Introduction to Scratch.pptIntroduction to Scratch.ppt
Introduction to Scratch.pptSMARTCLASS4
 
Scratch for kids language in Program.pptx
Scratch for kids language in Program.pptxScratch for kids language in Program.pptx
Scratch for kids language in Program.pptxnandhinicse147
 
Start developing projects with Scratch Programming
Start developing projects with Scratch ProgrammingStart developing projects with Scratch Programming
Start developing projects with Scratch ProgrammingPrakritiDhang
 
Digital Drawing Assignment Directions & Tutorial
Digital Drawing Assignment Directions & TutorialDigital Drawing Assignment Directions & Tutorial
Digital Drawing Assignment Directions & TutorialMrsM2014
 
Getting started-guide-scratch2
Getting started-guide-scratch2Getting started-guide-scratch2
Getting started-guide-scratch2Botol Budu
 
Getting started-guide-scratch2
Getting started-guide-scratch2Getting started-guide-scratch2
Getting started-guide-scratch2Solange Zambrano
 
7.Advanced Scripts in Scratch.pptx
7.Advanced Scripts in Scratch.pptx7.Advanced Scripts in Scratch.pptx
7.Advanced Scripts in Scratch.pptxdipalishewale2
 
Getting started--Scratch Programming
Getting started--Scratch ProgrammingGetting started--Scratch Programming
Getting started--Scratch ProgrammingManjula Fernando
 
How to create an animated infographic
How to create an animated infographicHow to create an animated infographic
How to create an animated infographicDave LaFontaine
 
Scratch To Flex Your Creativity Workshop
Scratch To Flex Your Creativity WorkshopScratch To Flex Your Creativity Workshop
Scratch To Flex Your Creativity WorkshopKaren VItek
 

Similar to Programming in scratch (20)

Scratch Introduction
Scratch IntroductionScratch Introduction
Scratch Introduction
 
Introduction to Scratch.ppt
Introduction to Scratch.pptIntroduction to Scratch.ppt
Introduction to Scratch.ppt
 
Scratch for kids language in Program.pptx
Scratch for kids language in Program.pptxScratch for kids language in Program.pptx
Scratch for kids language in Program.pptx
 
Scratch an Editing App
 Scratch  an Editing App  Scratch  an Editing App
Scratch an Editing App
 
Start developing projects with Scratch Programming
Start developing projects with Scratch ProgrammingStart developing projects with Scratch Programming
Start developing projects with Scratch Programming
 
1.Scratch 1.pptx
1.Scratch 1.pptx1.Scratch 1.pptx
1.Scratch 1.pptx
 
Scratch_Reference_Guide.pdf
Scratch_Reference_Guide.pdfScratch_Reference_Guide.pdf
Scratch_Reference_Guide.pdf
 
Digital Drawing Assignment Directions & Tutorial
Digital Drawing Assignment Directions & TutorialDigital Drawing Assignment Directions & Tutorial
Digital Drawing Assignment Directions & Tutorial
 
Scratch2
Scratch2Scratch2
Scratch2
 
Getting started-guide-scratch2
Getting started-guide-scratch2Getting started-guide-scratch2
Getting started-guide-scratch2
 
Getting started-guide-scratch2
Getting started-guide-scratch2Getting started-guide-scratch2
Getting started-guide-scratch2
 
Guide scratch2
Guide scratch2Guide scratch2
Guide scratch2
 
Co sketch
Co sketchCo sketch
Co sketch
 
7.Advanced Scripts in Scratch.pptx
7.Advanced Scripts in Scratch.pptx7.Advanced Scripts in Scratch.pptx
7.Advanced Scripts in Scratch.pptx
 
Getting started--Scratch Programming
Getting started--Scratch ProgrammingGetting started--Scratch Programming
Getting started--Scratch Programming
 
How to create an animated infographic
How to create an animated infographicHow to create an animated infographic
How to create an animated infographic
 
Coding scratch
Coding scratchCoding scratch
Coding scratch
 
Scratch
ScratchScratch
Scratch
 
Scratch To Flex Your Creativity Workshop
Scratch To Flex Your Creativity WorkshopScratch To Flex Your Creativity Workshop
Scratch To Flex Your Creativity Workshop
 
Coding scratch n
Coding scratch nCoding scratch n
Coding scratch n
 

Recently uploaded

PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Shubhangi Sonawane
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfChris Hunter
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIShubhangi Sonawane
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 

Recently uploaded (20)

PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 

Programming in scratch

  • 2. The purpose of that work • This work was made for the memory of my friend Ahmed Elzeki who passed away in 2016. you're allowed to use this presentation in any educational purpose for free. Just please pray for Ahmed. ‫عام‬ ‫فى‬ ‫المنيه‬ ‫وافته‬ ‫الذي‬ ‫الذكي‬ ‫أحمد‬ ‫صديقي‬ ‫لذكرى‬ ‫تخليدا‬ ‫تم‬ ‫العمل‬ ‫هذا‬2016.‫مسموح‬ ‫مجانا‬ ‫تعليميه‬ ‫أغراض‬ ‫ألي‬ ‫الملف‬ ‫هذا‬ ‫استخدام‬ ‫أحد‬ ‫ألى‬.‫دعائكم‬ ‫من‬ ‫أحمد‬ ‫تسنوا‬ ‫ال‬ ‫رجاء‬ ‫فقط‬
  • 3. What’s scratch? • MIT's block-based programming language. • With Scratch, you can program your own interactive stories, games, and animations — and share your creations with others in the online community. • Scratch helps young people learn to think creatively, reason systematically, and work collaboratively — essential skills for life in the 21st century. • Scratch is a project of the Lifelong Kindergarten Group at the MIT Media Lab. It is provided free of charge.
  • 4. Prerequisites Scratch will run in the following browsers: • Chrome 35 or later • Firefox 31 or later • Internet Explorer 8 or later • In addition, you must have Adobe Flash Player 10.2 or later installed in order to run Scratch.
  • 5. How to open scratch? • Visit http://scratch.mit.edu to get started. You should see a webpage that looks similar to this:
  • 6. CREATING A SCRATCH ACCOUNT AND SIGNING IN • At the top right corner of the Scratch page, you'll see a "Sign in" button.
  • 7. Getting started • Once you've logged in, click on the "Create" button at the top left corner of the webpage. This will take you to a new page where you can start working on a new Scratch project!
  • 8. Scratch programming language • Tabs (for blocks): • In the top center of the Scripts tab of the Scratch editor, there is a list of colored rectangles and types of blocks. These are the block tabs. We use them to look at lists of the different kinds of blocks.
  • 9. Scratch programming language Tabs (for each Sprite): • In the top center of the Scratch editor, there are three tabs that say "Scripts", "Costumes", and "Sounds". These are the tabs for each sprite.
  • 10. Scratch programming language • Blocks: • Blocks are the colored pieces that we move around to make Scratch programs. Different colored blocks are used to do different things. The block color is the same color that goes with the block tab where you find that block.
  • 11. Scratch programming language • Script: • A script is a group of connected blocks that does something when you double click on it.
  • 12. Scratch programming language • Sprite: • A sprite is a Scratch character. Each sprite has its own scripts, costumes, and sounds. Sprites are shown on the stage and in the sprites area in the bottom left part of the screen.
  • 13. Scratch programming language • Costume: • The appearance of the sprite on the stage. Each sprite can have multiple costumes.
  • 14. Scratch programming language • Stage: • The stage is in the upper left part of the Scratch editor. This is where you can see what happens when you run your scripts.
  • 15. COMPUTER SCIENCE LINGO • We'll also use computer science lingo in this class! These words describe things that are in Scratch and other programming languages.
  • 16. Quiz • Which area is the "scripts area"? Answer B
  • 17. Moving Pieces • CREATING SCRIPTS • In your Scratch project, drag some blocks onto the "Scripts" area.
  • 18. Moving Pieces • Now try to connect the blocks to create this script below!
  • 19. REMOVING A BLOCK • How can you remove the block from the script you just wrote so that it looks like the script below? Figure this out now!
  • 20. RUNNING SCRIPTS • Try connecting some of play note blocks in the scripts area. Run the script you made by double clicking on it (there should be a yellow glow around it).
  • 21. NAMING YOUR PROJECT • You can change the name of your project by filling in the box at the top of the stage, in the upper left portion of the screen. In this picture, we're naming our project "1. Repeats in a Song".
  • 22. SAVING YOUR PROJECT • It's really important that you save your Scratch projects often. Otherwise, you might lose something you've been working really hard on! It hurts, I promise. • To save your project in Scratch, click "Save Now" in the upper right corner of the screen, next to your username. You can also click the "Save Now" option in the "File" menu in the upper left part of the Scratch editor.
  • 23. Repeat • to make the song below where we play the notes 60 and 62 over and over again, we need 8 pieces!
  • 24. Repeat • THE REPEAT BLOCK • To make our work easier, we can use repeat blocks! Click on the "Control" tab in the middle of the Scratch window. • A repeat block can do a snippet of code over and over again. The number next to the word repeat tells us how many times we want to do the things inside of the repeat block.
  • 25. EXPERIMENT WITH REPEAT • Try to make a script that uses different numbers after the repeat. Here are some examples. Repeat 3: Repeat 1: Repeat 0:
  • 26. EXPERIMENT WITH REPEAT • Try to put pieces before, after, and inside the repeat, like below. • Hint: If you click on a block with the right button on the mouse ("right-click"), you should see "duplicate", "delete" and "add comment" options. Select "duplicate" to make a copy of the block you clicked on and all blocks below that block. If right-clicking doesn't work, you can press shift and then click to see the menu.
  • 27. QUIZ • How many times does the note 52 play when you double click the script below? • How many times does the note 62 play when you double click the script below? Answer 0 Answer 1
  • 28. NESTED REPEATS • We can put one repeat inside of another repeat! We call this a nested repeat. • How many times will the note 62 play when you double click on this script? Answer 6
  • 29. COMPLEX NESTED REPEATS • Nested repeats (a repeat within a repeat) can be really complicated!!! • How many times does the note 55 play when you double click the script? • How many times does the note 60 play when you double click this script? Answer 4 Answer 2
  • 30. Tricky Nested Repeats • It is important in computer science to figure out exactly what instructions get executed (when a script runs). • When the script is run, what is the first note that is played? • When this script is run, what is the last note that is played? • When this script is run, is the note 40 ever played twice in a row? • When this script is run, is the note 60 ever played twice in a row? 40 60 NO NO
  • 31. Project: Make a Song • For your first project - make a song! You can make a Scratch script for a song written by someone else, or come up with a new song on your own! You should make a new Scratch script and not use parts of someone else's script. • Start by making a new project in Scratch. Click on "File" in the gray bar at the top of the screen and you'll see a menu pop up. Click on "Go to My Stuff". This should take you to the page with all your projects.
  • 32. Project: Make a Song • Now click on the button that says "+ New Project". • This will open a new project for you. • To make your song, you can try using any of the blocks in the Sound tab.
  • 33. Project: Make a Song • Also, you can make more than one script with a "green flag" block on top. That way, when you click the green flag, more than one script will play! This is called parallel execution. • NOTE : you must put the green flag in the beginning of your script so that others can play you song. You’ll find it there
  • 34. HOW TO SHARE YOUR PROJECT • Before you post a link to your project, you need to share the project. Do this by pressing the gray Share button in the upper right corner of the Scratch editor, under your Scratch username.
  • 35. HOW TO SHARE YOUR PROJECT • After you've shared your project, you will see the word "shared" in parentheses under the name of your project, and you will no longer see the "Share" button next under your username in the upper right corner.
  • 36. HOW TO SHARE YOUR PROJECT • To post your project, copy the URL of your project and paste it. The URL for your Scratch project should be at the top of the browser page. • NOTE: don’t forget to use more than 3 instruments and the repeat block
  • 37. Intro to Drawing • Reset Script • When we're drawing in Scratch, it's helpful to be able to reset the stage. Resetting the stage moves the character to the center of the screen and removes older drawings from the stage.
  • 38. Drawing a Square • Now you'll try drawing a square yourself! Create a new project in Scratch. But, for your square, try to use the repeat block. • The blocks below will probably be helpful too!
  • 39. HINT • You might want to make your character smaller so that it is easier to see where it is drawing (check out the 4 buttons on the at the top right of the stage--stamp, scissor, and 2 buttons with arrows--these could be helpful!).
  • 40. HINT • You might want to see your character drawing the shape you want. Using delay will help you achieve that. • Try this out!
  • 41. Drawing a Triangle Quiz • Someone wants to draw a triangle in Scratch (like the one below). At each turn, does the character turn more or less than 90 degrees? The sprite will be turning right. • Less than 90 degrees • 90 degrees exactly • More than 90 degrees FALSE FALSE TRUE
  • 42. Drawing a Triangle Quiz • Someone tried to make a triangle but it doesn't quite look like a triangle. Would you recommend that they have the character turn MORE at each turn or LESS at each turn? • More • Less TRUE FALSE
  • 43. Drawing a Triangle Quiz • Someone made tried to make a triangle but it doesn't quite look like a triangle. Would you recommend that they have the character turn MORE at each turn or LESS at each turn? • More • Less FALSE TRUE
  • 44. DRAWING A TRIANGLE WITH REPEAT • Using a REPEAT try to draw the following shape, an equilateral triangle:
  • 45. Quiz • How many degrees did the sprite turn in total when it drew the square? • How many degrees did the sprite turn in total when it drew the triangle? 360 360
  • 46. Draw a Pentagon • Use Guess and Check to have the sprite draw a pentagon in Scratch. • 1. How many degrees did the character turn in total when it drew the pentagon? 360
  • 47. Drawing Circles • Have your character draw a circle in Scratch. • Building off the circle you just made, draw 2 more circles. One should be smaller than the first circle you drew and one should be larger than the first circle you drew.
  • 48. Quiz • Which of these scripts will draw a larger circle? TRUE FALSE
  • 49. Quiz • Draw a staircase across the Scratch stage using repeat.
  • 50. Quiz • Draw a dotted line that goes across your Scratch screen. Hint: You should use repeat.
  • 51. Quiz • Assume the sprite starts at the arrow, facing the same direction as the arrow. Choose which path the sprite will follow when this script is run. FALSE TRUE FALSE
  • 52. Draw beautifully in scratch you can adjust drawing with great features. • Change colors • Change color shade • change font size
  • 53. Change font size • You can use change pen size by () and put the value you wish. If it’s +ve the pen thickness will grow else if it’s –ve the pen thickness will shrink • You also can use set pen size to () and put whatever the value you want
  • 54. Change color • To change the color you use just press the colored square and go with your mouse anywhere in the page and the color you click on will be you color. • If you’re using repeat you can use to change the colors each iteration. This will make you able to draw colorful shapes
  • 55. Change color • For example. This script draws this colorful square
  • 56. Change shade • Changing shade will make the color darker or lighter • The below script draws the right square which go darker every iteration due to the -20. • If you changed -20 to +20 it’ll draw the left square which go lighter every iteration.
  • 57. Putting all together • Not use your imagination to draw wonderful shapes with music in the background • Don’t forget to use the “WAIT” block to make your drawings into animations • Don’t forget to use the “when clicked greed flag” block to enable as play your wonderful work when you share it.
  • 58. THANK YOU! Resources • https://goo.gl/mBFZVw • Contact • 01022495616 • hussam.mostafa.qi@gmail.com