Introduction to Computer Programming - Project 1 Intro to Digital Technology.

Slides:



Advertisements
Similar presentations
Summer Computing Workshop. Introduction to Variables Variables are used in every aspect of programming. They are used to store data the programmer needs.
Advertisements

Michael Parkes Dudley LA What can Scratch do? Make simple games, animations, presentations and stories.
Scratch for Storytelling Dr. Ben Schafer Department of Computer Science University of Northern Iowa.
1 An intro to programming concepts with Scratch Session 3 of 10 sessions Repetition and variations.
Programming Concept #2 Iteration. Is just a fancy way of saying that you would like something to repeat more than one time. It is used in any modern programming.
Write Your First Computer Game!. Coding: Programming Languages Just like you can speak Chinese to someone who understands Chinese to tell them what to.
Learn… Create… Program. Manipulation of Multiple Media Connects with youth culture Scratch is a new graphical programming language designed to support.
1 An introduction to programming concepts with Scratch.
An intro to programming concepts with Scratch Session 2 of 10 sessions I/O, variables, simple computing.
1 An intro to programming concepts with Scratch Session 1 of 10 sessions Looks and Motion.
KS1 Scratch 1.4 Pizza Pickle - Debugging Programming.
What is Scratch? Scratch as Logo Dr. Ben Schafer Department of Computer Science University of Northern Iowa.
Mr. Wortzman. Tabs (Block Categories) Available Blocks Script Area Sprite Stage All sprites in this project.
Every week: Sign in at the door If you are new: Fill in Registration Form Ask a Mentor how to get started Make sure you are on the Athenry Parents/Kids.
Learning to program using Minecraft. Learning Objective Know what Minecraft is and to explain some of it’s uses Build a simple house in creative mode.
Manage your mailbox V: Retrieve, back up, or share messages Use your stored messages Whether you’re using the Personal Folders method or the Archive method.
Scratch the Cat. Object Oriented Programing Writing computer programs Based on Objects Instead of Actions Based on Data Instead of Logic.
Scratch Internet- Open Chrome hit “Create” 1.
Code Club Session 2 Dance Party. What will we learn ?  How to change the background  How to create animations  How to make objects talk to each other.
Introduction to Scratch!
Introduction to Visual Basic. Quick Links Windows Application Programming Event-Driven Application Becoming familiar with VB Control Objects Saving and.
Using MIT Scratch for Programming and Control Exercise 3 Ball Game Year 9 ICT Autumn Term 2007.
Summer Computing Workshop. Session 2 Input in Scratch  Multi-Character input - This is used when the user is prompted to enter a number or word.  Problems.
Introducing Scratch the Cat
Section 2 Variables National 4/5 Scratch Course. What you should know after this lesson What a variable is Where variables are stored How to get data.
ACO 101 Making a program. mb_your_brain_on_improv.html mb_your_brain_on_improv.html.
Moving Around in Scratch The Basics… -You do want to have Scratch open as you will be creating a program. -Follow the instructions and if you have questions.
Introduction to Scratch Scratch as Logo Dr. Ben Schafer Department of Computer Science University of Northern Iowa.
2015 CSE/EGR Summer Camps 1 Computer Science Concepts 1. What is an algorithm? 2. Binary information coding 3. Programming concepts via Scratch Designed.
Scratch Intermediate Programming Level 2. What You’ll Learn…  About computer programming and programming languages  A basic understanding of object-oriented.
Section 1 Introduction National 4/5 Scratch Course.
Summer Computing Workshop.  This workshop is designed to introduce basic programming concepts through the use of the highly intuitive programming environments.
Introduction to Python Lesson 1 First Program. Learning Outcomes In this lesson the student will: 1.Learn some important facts about PC’s 2.Learn how.
WHAT IN THE WORLD IS SCRATCH??? AN INTRODUCTION TO COMPUTER PROGRAMMING By MD Showman.
Computer Programming Modeling a Passive Solar Home.
1 Project designed and created by M. Shajith Kumar.
Using MIT Scratch for Programming and Control Exercise 1 Creating movement Year 11 DTG 2012.
Cloning in Scratch Computer App Session 6. Cloning in Scratch Learning Objectives: I will clone sprites in Scratch to create copies of an existing sprite.
Introduction to Computer Programming - Project 2 Intro to Digital Technology.
How to create a basic game in Scratch. The Scratch Stage The Scratch stage is 480 pixels wide and 360 pixels high x increasesx decreases.
Today's Ninja Challenge: Write Your First Computer Game!
Scratch Lesson 1. Creating an account Open the internet browser : Safari or Internet Explorer Type in the URL scratch.mit.edu Using your school computer.
Computer Programming Modeling a Passive Solar Home.
Computer Programming with Scratch JAOIT 8. Scratch Scratch is a programming language that makes it easy to create your own interactive stories, animations,
Sprites & Backdrops. Sprites Sprites are the actors that perform the commands in your script. The cat is the default Sprite. Scratch has many other Sprites.
Intro CS – Loops, making animations & films Lesson Plan 3.
Introducing Scratch Learning resources for the implementation of the scenario
Using MIT Scratch for Programming and Control Programming 9.
Functions / Blocks.
Review for Final June 13, 2016.
Development Environment
Scratch for Interactivity
Scratch Unit Overview We are going to look at computer programming and how to create your very own computer game The piece of software we will be using.
Computing Year 7 - Unit 2 Programming Basics Scratch Basics.
Introduction to Object-Oriented Programming
Getting Started with Scratch
KS1 Scratch 1.4 Pizza Pickle - Debugging
Go to =>
Introduction to TouchDevelop
Maze Race. Maze Race Race The first thing you need to do is change the background so click on stage. Then click on background. Now click paint Select.
Getting Started with Scratch
Tonga Institute of Higher Education IT 141: Information Systems
Introduction to Snap Programming
Tonga Institute of Higher Education IT 141: Information Systems
Getting Started with Scratch
Game development using Scratch
Problem Solving and Computer Programming
Using MIT Scratch for Programming and Control Exercise 5 – Drawing with Scratch Year 9 ICT Autumn Term 2007.
Presentation transcript:

Introduction to Computer Programming - Project 1 Intro to Digital Technology

Getting Started Computers aren't very smart. Sure, they can do a lot of math or help you search the Internet. But, if you asked a computer to vacuum the house for you, could it do it? If you asked a computer to draw a picture of a bird for you, would it? A computer would have no idea about what you're saying.

Getting Started Computers are bad at understanding things. If you don't give them exact instructions, they become confused and make mistakes. Telling a computer what you want it to do is sometimes hard because you have to explain things very carefully.

Getting Started Because computers don't understand English, you have to give them instructions in special computer languages that computers can understand. This exercise will teach you the Scratch computer language, an object-oriented language created by MIT to teach programming to students.

Getting Started Don't be frustrated if you write some code that a computer doesn't understand. Remember that computers are easily confused, and all the instructions have to be exactly right. Computers are very picky! Little mistakes or problems in the code are called bugs. Even the best programmers make many, many bugs.

Giving Commands to Objects Scratch is an object-oriented language. That means that the language has objects that you can give commands to. It's just like in real-life. If you have a dog, you can tell your dog to "sit" or to "roll-over.“ In Scratch, these objects are called “sprites”. There’s also a background object called “Stage” that you can give commands to as well.

Detour – Scratch Reference Guide We’re going to take a detour and check out Scratch. Open the Scratch Reference Guide and review it until the class is ready. This will familiarize you with the Scratch interface.

Giving Commands to Objects When you first open Scratch, you’ll see two objects you can make do things: a sprite and the stage. You can only change the appearance of the stage, but you can change a lot of things with a sprite – looks, movement, etc. The default sprite is a cat. You can bring in other sprites, and you can create your own, but for now we’re going to start with the cat.

Giving Commands to Objects Sprites are limited to the actions included in the Blocks palette – that’s all they can do. As the Scratch reference tells you, to make a sprite do something, you drag a block from the Blocks palette into the Scripts area, then click the block. The Blocks palette is divided into different categories, so if you don’t find the action you’re looking for, try a different category.

Giving Commands to Objects Find the block to make the sprite say hello for 2 seconds. Drag it into the Scripts area and run it. Change the text in the input area to make it say something different. Try four other actions from either the motion or looks categories. Remember to click the block to run it. Hello!

Giving Commands to Objects Remove everything from the Scripts area (drag the blocks back to the Blocks palette). Drag 3 instances of the ‘say hello for 2 secs’ block into the Scripts area and lock them together (they’ll lock together when you drag them close). Make each one say something different, then click on any of the blocks to run it. The sprite will run each command in the order the blocks are attached to each other. Yay! Wow!

Giving Commands to Objects Congratulations! You have just created a computer program, a list of instructions for a computer to follow.

Programming Project 1 Now it’s time to write a program to make a sprite do some specific actions. Clear the scripts area first, then write a program to make your sprite do this: 1.Go to x:-180, y:90 (upper left of stage) 2.Point in direction 180 (straight down) 3.Move 90 steps 4.Point in direction 90 (to the right) 5.Move 180 steps 6.Double in size (200%) 7.Return to normal size (100%) In addition, between each step and at the end, make the sprite say something for 1 second. Save this in your Intro to Programming folder using this file name: Project 1