scratch programming. objectives for today finish your online design math problem. name the basic...

21
Scratch Programming

Upload: winfred-sherman

Post on 28-Dec-2015

215 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Scratch Programming. Objectives for Today Finish your online design math problem. Name the basic terms used in Scratch. Create the beginning of a simple

Scratch Programming

Page 2: Scratch Programming. Objectives for Today Finish your online design math problem. Name the basic terms used in Scratch. Create the beginning of a simple

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

Page 3: Scratch Programming. Objectives for Today Finish your online design math problem. Name the basic terms used in Scratch. Create the beginning of a simple

Why Math???

• We did some problem solving because that is what programming a microprocessor based system does.

• Number cruncher

Page 4: Scratch Programming. Objectives for Today Finish your online design math problem. Name the basic terms used in Scratch. Create the beginning of a simple

• 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

Page 5: Scratch Programming. Objectives for Today Finish your online design math problem. Name the basic terms used in Scratch. Create the beginning of a simple

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

Page 6: Scratch Programming. Objectives for Today Finish your online design math problem. Name the basic terms used in Scratch. Create the beginning of a simple

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.

Page 7: Scratch Programming. Objectives for Today Finish your online design math problem. Name the basic terms used in Scratch. Create the beginning of a simple

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

Page 8: Scratch Programming. Objectives for Today Finish your online design math problem. Name the basic terms used in Scratch. Create the beginning of a simple

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

Page 9: Scratch Programming. Objectives for Today Finish your online design math problem. Name the basic terms used in Scratch. Create the beginning of a simple

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

Page 10: Scratch Programming. Objectives for Today Finish your online design math problem. Name the basic terms used in Scratch. Create the beginning of a simple

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

Page 11: Scratch Programming. Objectives for Today Finish your online design math problem. Name the basic terms used in Scratch. Create the beginning of a simple

Open here

This window opens

Scratch BasicsHow to choose a Sprite from a file

Page 12: Scratch Programming. Objectives for Today Finish your online design math problem. Name the basic terms used in Scratch. Create the beginning of a simple

Scratch Basics

• How to paint your own sprite

Opens up paintAnd you can make Your own sprite

Page 13: Scratch Programming. Objectives for Today Finish your online design math problem. Name the basic terms used in Scratch. Create the beginning of a simple

Scratch Basics

• Each sprite has its own scripts. • Click on sprite and program it This is for the letter C

Its highlighted

Page 14: Scratch Programming. Objectives for Today Finish your online design math problem. Name the basic terms used in Scratch. Create the beginning of a simple

Scratch Basics

• You can right click any block and select help to get more information on how to use it.

Page 15: Scratch Programming. Objectives for Today Finish your online design math problem. Name the basic terms used in Scratch. Create the beginning of a simple

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

Page 16: Scratch Programming. Objectives for Today Finish your online design math problem. Name the basic terms used in Scratch. Create the beginning of a simple

Scratch Basics

• How to switch back and forth between sprites by clicking on them

Page 17: Scratch Programming. Objectives for Today Finish your online design math problem. Name the basic terms used in Scratch. Create the beginning of a simple

Scratch Basics

• X and Y coordinates on the screen are shown on the bottom right below the stage

Page 18: Scratch Programming. Objectives for Today Finish your online design math problem. Name the basic terms used in Scratch. Create the beginning of a simple

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

Page 19: Scratch Programming. Objectives for Today Finish your online design math problem. Name the basic terms used in Scratch. Create the beginning of a simple

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

Page 20: Scratch Programming. Objectives for Today Finish your online design math problem. Name the basic terms used in Scratch. Create the beginning of a simple

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

Page 21: Scratch Programming. Objectives for Today Finish your online design math problem. Name the basic terms used in Scratch. Create the beginning of a simple

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