scratch programming. objectives for today finish your online design math problem. name the basic...
TRANSCRIPT
Scratch Programming
Objectives for Today
• Finish your online design math problem.• Name the basic terms used in Scratch. • Create the beginning of a simple program in
Scratch.
– SOLs addressed: problem solving and critical thinking
Why Math???
• We did some problem solving because that is what programming a microprocessor based system does.
• Number cruncher
• The cornrow activity can’t be done without doing the tutorial and thinking about what you are doing.
• You must plan• Write in your report your answers
Author of the softwareAudrey Bennett
Go to the software-csdt.rpi.edu
• Do this:• Click on the default image• Use the middle braid of the default image • Put in iterate = 20, X = -100, Y = 100, Starting Angle =
12, Translate = 70, Rotate = -7, Dilate = 95. • Best to do starting angle last (because there is no way
you could have know that you would need that starting angle ahead of time).
• Click add braid button• reposition that new braid
We looked at sorting and divide and conquer algorithms last time
Should have given you some idea of how a process has to be developed to get the computer to do what you want it to do.
Programming is one of the creative processes that can transform ideas into reality
• Used in gaming• Used in health field• Used in engineering• Used in tax preparation• Used in business• Used in cell phone apps• The list goes on
We are going to use Scratch
• Allows for tinkering because the syntax isn’t restrictive
• What is syntax????
• Scratch has blocks of text that make up the commands so it is easy to learn and it is fun
What is Scratch?
• Although Scratch is programming, it is not used in industry. A few languages that are used in industry—Java, C, C++ but the basic constructs used in Scratch are also used in “industrial strength” languages.
• Watch video
First project
• Will be similar to name.sb— let’s take a look
• Any character you use in scratch is called a sprite—like the kitty and the letters in the example
Open here
This window opens
Scratch BasicsHow to choose a Sprite from a file
Scratch Basics
• How to paint your own sprite
Opens up paintAnd you can make Your own sprite
Scratch Basics
• Each sprite has its own scripts. • Click on sprite and program it This is for the letter C
Its highlighted
Scratch Basics
• You can right click any block and select help to get more information on how to use it.
Scratch Basics
• How to go to full screen mode and back
Then there is an arrowon the full screen that you click to go back
Scratch Basics
• How to switch back and forth between sprites by clicking on them
Scratch Basics
• X and Y coordinates on the screen are shown on the bottom right below the stage
Scratch Basics
• Save in the proper location (the default is to save in the Scratch Projects folder (C:\\Program Files\Scratch\Projects)) .
• You need to save to a jump drive. If you lose your projects it is not my fault you didn’t protect it
Scratch basics
• Let’s model: Link to Scratch• Move _ steps • If on edge, bounce • Forever • Turn _ degrees • Change color effect by _ • When the green flag is clicked it plays
Scratch Basics
• You should not be scared to just try and experiment. You can’t break the computer by dragging the wrong block.
• Use the ScratchGettingStarted.pdf found on my website for beginner help
Name Rubric-download it
Do you have? Points Possible
Yes No Point earned
Have a separate sprite for each letter of your name. 10
Have at least 3 different interesting behaviors for the letters in your name.
10
All the letters have a behavior 8
Use the “when green flag clicked” block 6
Use the “forever” block 6
Have your name reinitialize itself when the green flag is clicked. In other words, all the letters will start off in the right location facing the correct way.
4
TOTAL: 20