Www.computerscienceuk.com Learning the skills for programming Advanced Visual Programming.

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

SCRATCH Lesson Two – Interactive Concepts Using Sensing, Operators, and Variables.
Pong! “The oldest commercially available game in history” Resources created from the video tutorials provided by David Phillips on
Harry Potter Scratch Game
Introduction to TouchDevelop
Code Club Session 3 Shark Eats Fish. Picture of finished product here.
An intro to programming concepts with Scratch Session 2 of 10 sessions I/O, variables, simple computing.
Madlib-Input, Strings, and Lists in Scratch Barb Ericson Georgia Tech June 2011.
Sequencing Miss Regan. Blood Hound  Does anyone know what the Bloodhound project is?  Video 1 Video 1  Video 2 Video 2  Link to website Link to website.
Fish Chomp. The screen where you can see what happens when you play your game is called the STAGE. The SCRIPT BANK is where the types of instructions.
Scratch the Cat. Object Oriented Programing Writing computer programs Based on Objects Instead of Actions Based on Data Instead of Logic.
The Scratch Calculator You are all going to be real computer programmers!!!
From Scratch to Python Learn to program like the big boys / girls!
CATCH SCRATCH! Programming from Scratch. Remember Scratch?
Programming Computer Games Game Design.
Introduction to Visual Basic. Quick Links Windows Application Programming Event-Driven Application Becoming familiar with VB Control Objects Saving and.
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.
ADVANCED EV3 PROGRAMMING LESSON
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.
University of Sunderland CIF 102/FIF102 Fundamentals of DatabasesUnit 15 Programming in Microsoft Access using VBA Using VBA to add functionality.
Scratch Programming Lesson 4 Question asking and answering.
Variables. Todays Lesson  In todays lesson you are going to:  Learn to use variables  Learn to ask for user input  Learn to save the users response.
Fish Chomp. The screen where you can see what happens when you play your game is called the STAGE. The SCRIPT BANK is where the types of instructions.
Software Development. Software Development Loop Design  Programmers need a solid foundation before they start coding anything  Understand the task.
Computer Programming I Module This lesson illustrates how to code for arrays used to store data and how to display your data in listboxes.
BBC Microbit Getting set up and making your first program.
24 Background Building 25 Computing Terminology, and Speed/Velocity Module 4 Notes: Sensing, Or Operator, Conditional Logic 28 Module 4 Algorithms,
Introduction to Computer Programming - Project 2 Intro to Digital Technology.
Programming a Shooter Game Design.
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.
GCSE Computing: Programming GCSE Programming Remembering Python.
Introduction to TouchDevelop Lesson 3 – Comments & Lists Created by S. Johnson
LO: We’re learning to outline a program using Pseudo Code.
Lives and Scoring Games Programming in Scratch. Games Programming in Scratch L2 Lives and Scoring Learning Objectives Define a variable Understand the.
ICT/COMPUTING RULES Only use software allowed by the teacher
Madlib-Input, Strings, and Lists in Scratch Barb Ericson Georgia Tech.
Magic 8 ball. "Design and write a python program that emulates a Magic Eight Ball. Your program should continually prompt the user to enter a question.
Intro CS – Probability and Random Numbers Lesson Plan 6a.
Randomness Exploring Computer Science Lesson 4-10 – Part 2.
Introducing Scratch Learning resources for the implementation of the scenario
Objective of the lesson Use Blockly to make a dice for Snakes and Ladders All of you will: – Make an image which displays when you press a button Most.
Event Driven Programs Exploring Computer Science – Lesson 4-5.
Scratch Helicopter Game
Movement Game Design (Scratch).
Games Programming in Scratch
Starter Activity Instructions: Complete the starter sheet Planner
Computing Year 7 - Unit 2 Programming Basics Scratch Basics.
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
BBC Microbit.
Introduction to Object-Oriented Programming
Language Basics.
For -G7 programing language Teacher / Shamsa Hassan Alhassouni.
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
And and or…and RANDOMNESS
Explain what touch develop is to your students:
An intro to programming concepts with Scratch
Inputs and Variables Programming Guides.
Explain what touch develop is to your students:
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Introduction to Python
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Explain what touch develop is to your students:
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Presentation transcript:

Learning the skills for programming Advanced Visual Programming

Quick Review of Last Lesson Event Driven Programming Blocks of code can be run when certain events occur Random Function In Scratch there is a function to pick a random number

Learning Objectives – Remember what is meant by “event-driven” computer programming – Remember how to generate a random number in scratch – Understand what a variable is – Understand how computer make decisions (IF Statements Lesson Outcomes – Produce a Magic 8-Ball program Literacy – Key Words VariableA place where programs store data – think of them as storage boxes. IF StatementThe code needed to get programs making decisions.

Variables If you were playing a game and rolled a dice, you would need to memorize the number and then use the number to move your counter around the board. When programs work with data they need to memorize things too (even if its just for a second). Programs don’t have brains to store their data, instead they have variables. I rolled a 6 – I must remember that so I can move my counter ?

Hands up if you can explain what a variable is?

What is a variable? In programming, a variable can be thought of as a storage box. The box may be given a name, and it may hold various different things. In scratch, is the name of a ready made variable, and it will store what ever you type into scratch. Variable called ‘ANSWER’ Contents is anything we type in Storage

Creating New Variables But we can also create our own storage boxes (variables) To create a variable we: -click on the variables button -Make a variable -Give it a name We can then set the box to a particular value – in other words “put some data in the box”

Variables - Summary Variables are the name of the box Contents is any data the program needs to keep hold of Variables are storage boxes which programs use to hold/store data Programmers can create as many variables as they like.

Hands up if you can explain what a variable is?

Hands up if you can explain how IF statements work?

IF statements are how programs make decision. IF this occurs, I will do this ELSE, I will do that IF – ELSE statements allow programs to make decisions based on certain conditions occurring.

The IF Statement What is this script going to do? When we click the sprite a random number is generated and stored in the variable called ‘number’. If number = 1, the cat will say “ your random number is 1”. If number = 2 the cat will say “ your random number is 2”.

Hands up if you can explain how IF statements work?

Magic Eight Ball You shake them and they give you a random message – they are fortune tellers! …and you are now going to program one!

Planning before we program Before programmers start programming, they always start by imagining the program as a real life object, as a human perhaps. If you were a magic 8 ball what would you do? 1.Wait to be shaken 2.Pick a random statement 3.Say the random statement Write down your thoughts on a whiteboard

If you were the 8-ball program, what would you do? Wait for user to shake 8-ball (Event / Input) Random number would then be generated You would memorize the number (store it) You would decide what the number means (process it) You would then output a message based on that random number INPUT STORE NUMBER IN VARIABLE What does a 1 mean? OUTPUT Message

Planning INPUT Wait for user to shake 8- ball (Event / Input) HOW?

Planning = Algorithm Random number would then be generated You would memorize the number (store it) HOW? STORE NUMBER IN VARIABLE

Planning = Algorithm You would decide what that means (process it) HOW? What does a 1 mean?

Planning = Algorithm You would then output a message based on that random number HOW? OUTPUT Message

Task Create your own Magic 8-Ball program – It must have an image which the user can click – When its clicked it must select a random statement and display it on the screen Extend by developing the look of the program – improve the image, background or even animate the ball.